Exemplo n.º 1
0
    def __init__(self, username, userfullname, password):
        self.username = username
        self.userfullname = userfullname

        self.passwordsalt = loginhelper.createSalt()
        self.passwordhash = md5.md5(password + self.passwordsalt).hexdigest()
Exemplo n.º 2
0
 def changePassword(self, newpassword):
     self.passwordsalt = loginhelper.createSalt()
     self.passwordhash = md5.md5(newpassword +
                                 self.passwordsalt).hexdigest()
Exemplo n.º 3
0
   def __init__(self, username, userfullname, password ):
      self.username = username
      self.userfullname = userfullname

      self.passwordsalt = loginhelper.createSalt()
      self.passwordhash = md5.md5( password + self.passwordsalt ).hexdigest()
Exemplo n.º 4
0
 def changePassword( self, newpassword ):
    self.passwordsalt = loginhelper.createSalt()
    self.passwordhash = md5.md5( newpassword + self.passwordsalt ).hexdigest()
Exemplo n.º 5
0
 def __init__(self, password ):
    self.passwordsalt = loginhelper.createSalt()
    self.passwordhash = md5.md5( password + self.passwordsalt ).hexdigest()