Ignore:
Timestamp:
5 Sep 2011, 10:05:00 (13 years ago)
Author:
Henrik Bettermann
Message:

Use the setPassword method when saving a password.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/students/browser.py

    r6675 r6682  
    5252    )
    5353from waeup.sirp.image.image import createWAeUPImageFile
    54 from waeup.sirp.interfaces import IWAeUPObject, ILocalRolesAssignable
     54from waeup.sirp.interfaces import (
     55    IWAeUPObject, ILocalRolesAssignable, IUserAccount,
     56    )
    5557from waeup.sirp.permissions import get_users_with_local_roles
    5658from waeup.sirp.university.interfaces import ICertificate
     
    290292        if fields_string:
    291293            self.context.loggerInfo(ob_class, 'saved: % s' % fields_string)
     294        if 'password' in fields_string:
     295            IUserAccount(self.context).setPassword(form['form.password'])
    292296        return
    293297
Note: See TracChangeset for help on using the changeset viewer.