Development #7248
manager: allow changing password from the user edit form
Start date:
14 May 2015
Due date:
% Done:
0%
Estimated time:
Patch proposed:
No
Planning:
Description
It should also be possible to generate a password and to send the new password by mail to the user.
Associated revisions
passwords: add a function to generate password
It can only accomodate A2_PASSWORD_POLICY_MIN_LENGTH and
A2_PASSWORD_POLICY_MIN_CLASSES, it is not possible currently to generate
something that will match A2_PASSWORD_POLICY_REGEX with certainty. It would
need to generate a transducer from the regular expression. refs #7248.
History
Updated by Benjamin Dauvergne over 7 years ago
- Status changed from Nouveau to Résolu (à déployer)
Fixed by commit 25ad9166
Updated by Benjamin Dauvergne almost 7 years ago
- Status changed from Résolu (à déployer) to Solution déployée
utils: add a send templated mail function
It takes an email or an user as first argument then a template name prefix then
a context dictionnary. the following templates are used:
- <prefix>_subject.txt
- <prefix>_body.txt
- <prefix>_body.html
By default if an HTML template is found, it is used to add an HTML version of
the mail. refs #7248.