Changeset 8348


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

Handle encrypted and unencrypted passwords different on import (UNTESTED!)

File:
1 edited

Legend:

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

    r8336 r8348  
    240240            passwd = row.get('password', IGNORE_MARKER)
    241241            if passwd not in ('', IGNORE_MARKER):
    242                 IUserAccount(obj).setPassword(passwd)
     242                if passwd.startswith('{SSHA}'):
     243                    # already encrypted password
     244                    obj.password = passwd
     245                else:
     246                    # not yet encrypted password
     247                    IUserAccount(obj).setPassword(passwd)
    243248                items_changed += ('%s=%s, ' % ('password', passwd))
    244249            row.pop('password')
Note: See TracChangeset for help on using the changeset viewer.