Changeset 8350 for main/waeup.kofa/trunk/src/waeup/kofa
- Timestamp:
- 4 May 2012, 22:52:11 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/authentication.py
r7819 r8350 96 96 """ 97 97 passwordmanager = getUtility(IPasswordManager, 'SSHA') 98 self.context.password = u'%s' % ( 99 passwordmanager.encodePassword(password)) 98 self.context.password = passwordmanager.encodePassword(password) 100 99 101 100 def checkPassword(self, password): … … 109 108 passwordmanager = getUtility(IPasswordManager, 'SSHA') 110 109 return passwordmanager.checkPassword( 111 self.context.password.encode('utf-8'), # turn unicode into bytes 112 password) 110 self.context.password, password) 113 111 114 112 class StudentsAuthenticatorPlugin(grok.GlobalUtility):
Note: See TracChangeset for help on using the changeset viewer.