When the demo application is enabled, we disable the ''password change'' action for default super administrator.

see #187
This commit is contained in:
Antoine Nguyen
2011-11-24 11:00:24 +01:00
parent d23923a248
commit 767343640a
5 changed files with 31 additions and 3 deletions
+11
View File
@@ -256,6 +256,17 @@ callbacks and indicates the place where the announcement will appear:
Callbacks listening to this event must return a list of string.
PasswordChange
--------------
Raised just before a *password change* action. The associated ``User``
object is provided inside the ``user`` keyword argument.
Callbacks listening to this event must return a list containing either
``True`` or ``False``. If at least one ``True`` is returned, the
*password change* will be cancelled (ie. changing the password for
this user is disabled).
Parameters
==========