summaryrefslogtreecommitdiffstats
path: root/install/ui/src/freeipa/user.js
diff options
context:
space:
mode:
authorPetr Vobornik <pvoborni@redhat.com>2013-04-17 10:08:34 +0200
committerPetr Vobornik <pvoborni@redhat.com>2013-05-06 16:22:27 +0200
commit5be709bf9d4865486c239584653363c1d85492a6 (patch)
treeb33ef67286459d0397b7e6241f917b6b8a9911a6 /install/ui/src/freeipa/user.js
parent5239d3750e9a82028e79ffe95b9280fb606fb47b (diff)
downloadfreeipa-5be709bf9d4865486c239584653363c1d85492a6.tar.gz
freeipa-5be709bf9d4865486c239584653363c1d85492a6.tar.xz
freeipa-5be709bf9d4865486c239584653363c1d85492a6.zip
Builder and registry for actions
https://fedorahosted.org/freeipa/ticket/3235
Diffstat (limited to 'install/ui/src/freeipa/user.js')
-rw-r--r--install/ui/src/freeipa/user.js21
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;
});