Changeset 8350 for main


Ignore:
Timestamp:
4 May 2012, 22:52:11 (13 years ago)
Author:
uli
Message:

Remove unicodification of passwords.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/students/authentication.py

    r7819 r8350  
    9696        """
    9797        passwordmanager = getUtility(IPasswordManager, 'SSHA')
    98         self.context.password = u'%s' % (
    99             passwordmanager.encodePassword(password))
     98        self.context.password = passwordmanager.encodePassword(password)
    10099
    101100    def checkPassword(self, password):
     
    109108        passwordmanager = getUtility(IPasswordManager, 'SSHA')
    110109        return passwordmanager.checkPassword(
    111             self.context.password.encode('utf-8'), # turn unicode into bytes
    112             password)
     110            self.context.password, password)
    113111
    114112class StudentsAuthenticatorPlugin(grok.GlobalUtility):
Note: See TracChangeset for help on using the changeset viewer.