Changeset 8347


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

Handle encrypted and unencrypted passwords different on import.

File:
1 edited

Legend:

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

    r8309 r8347  
    180180        passwd = row.get('password', IGNORE_MARKER)
    181181        if passwd not in ('', IGNORE_MARKER):
    182             IUserAccount(obj).setPassword(passwd)
     182            if passwd.startswith('{SSHA}'):
     183                # already encrypted password
     184                obj.password = passwd
     185            else:
     186                # not yet encrypted password
     187                IUserAccount(obj).setPassword(passwd)
    183188            row.pop('password')
    184189
Note: See TracChangeset for help on using the changeset viewer.