Example #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()
Example #2
0
 def changePassword(self, newpassword):
     self.passwordsalt = loginhelper.createSalt()
     self.passwordhash = md5.md5(newpassword +
                                 self.passwordsalt).hexdigest()
Example #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()
Example #4
0
 def changePassword( self, newpassword ):
    self.passwordsalt = loginhelper.createSalt()
    self.passwordhash = md5.md5( newpassword + self.passwordsalt ).hexdigest()
Example #5
0
 def __init__(self, password ):
    self.passwordsalt = loginhelper.createSalt()
    self.passwordhash = md5.md5( password + self.passwordsalt ).hexdigest()