Ignore:
Timestamp:
14 Oct 2012, 21:02:31 (12 years ago)
Author:
Henrik Bettermann
Message:

Dedicated officers should be able to login as student with a temporary password set by the system. This is the first part of its implementation.

File:
1 edited

Legend:

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

    r9320 r9334  
    150150    state = Attribute('Returns the registration state of a student')
    151151    password = Attribute('Encrypted password of a student')
     152    temp_password = Attribute(
     153        'Dictionary with user name, timestamp and encrypted password')
    152154    certcode = Attribute('The certificate code of any chosen study course')
    153155    depcode = Attribute('The department code of any chosen study course')
     
    224226        )
    225227
     228    def setTempPassword(user, password):
     229        """Set a temporary password (LDAP-compatible) SSHA encoded for
     230        officers.
     231
     232        """
     233
     234    def getTempPassword():
     235        """Check if a temporary password has been set and if it
     236        is not expired.
     237
     238        Return the temporary password if valid,
     239        None otherwise. Unset the temporary password if expired.
     240        """
     241
    226242    def transfer(certificate, current_session,
    227243        current_level, current_verdict):
Note: See TracChangeset for help on using the changeset viewer.