-
Committer:
mattgiuca
-
Date:
2008-02-19 08:26:11 UTC
-
Revision ID:
svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:509
common.db: Rewrote user_authenticate to return 3 values (True, false, None)
Now returns False if the password did not match, None if the password
field is NULL (None implying a soft failure, with the possibility of
validating against LDAP or something else).
auth.authenticate: Rewrote this module with a new plugin interface
(as discussed with Tom Conway). Allows successive modules to try to
authenticate the user.
Changed the authenticate function interface: Now raises an AuthError
when auth fails, instead of returning None.
dispatch.login: Handle new auth interface (exception catch).
Auth is now able to provide an error message, in the exception.
The exception message is displayed as an error to the user.