diff options
Diffstat (limited to 'install/ui/src/freeipa/user.js')
-rw-r--r-- | install/ui/src/freeipa/user.js | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/install/ui/src/freeipa/user.js b/install/ui/src/freeipa/user.js index 04e589b77..bc608d8a8 100644 --- a/install/ui/src/freeipa/user.js +++ b/install/ui/src/freeipa/user.js @@ -21,8 +21,18 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -define(['./ipa', './jquery', './text', './details', './search', './association', - './entity', './certificate'], function(IPA, $, text) { +define([ + './ipa', + './jquery', + './phases', + './reg', + './text', + './details', + './search', + './association', + './entity', + './certificate'], + function(IPA, $, phases, reg, text) { var exp = IPA.user = {}; @@ -668,5 +678,12 @@ IPA.user.reset_password_acl_evaluator = function(spec) { IPA.register('user', IPA.user.entity); +exp.register = function() { + var a = reg.action; + a.register('reset_password', IPA.user.reset_password_action); +}; + +phases.on('registration', exp.register); + return exp; }); |