From 3a0985b7889bb604184a2a9fa42261efa194d032 Mon Sep 17 00:00:00 2001 From: Pavel Vomacka Date: Mon, 25 Jan 2016 14:44:51 +0100 Subject: [PATCH] Add support for the 'user' url parameter for the reset_password.html The /ipa/ui/reset_password.html page is now able to use url paramater 'user'. The value of this parameter is used for pre-filling the username field. https://fedorahosted.org/freeipa/ticket/5001 Reviewed-By: Petr Vobornik --- install/ui/reset_password.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/install/ui/reset_password.js b/install/ui/reset_password.js index 2e0db7db8..8dcdefdd0 100644 --- a/install/ui/reset_password.js +++ b/install/ui/reset_password.js @@ -207,6 +207,10 @@ RP.redir_count_down = function() { RP.init = function() { + var opts = RP.parse_uri(); + if (opts['user']) { + $("#user").val(opts['user']); + } $('#reset_password').submit(function() { RP.on_submit();