diff options
| author | Pavel Vomacka <pvomacka@redhat.com> | 2016-01-25 14:44:51 +0100 |
|---|---|---|
| committer | Petr Vobornik <pvoborni@redhat.com> | 2016-01-27 14:17:40 +0100 |
| commit | 3a0985b7889bb604184a2a9fa42261efa194d032 (patch) | |
| tree | 5b185f0c7625f8d5bf9d656523b71f8b1d665d78 /install | |
| parent | d5674b1490939551a0040a4d88ebc6f9437e74d9 (diff) | |
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 <pvoborni@redhat.com>
Diffstat (limited to 'install')
| -rw-r--r-- | install/ui/reset_password.js | 4 |
1 files changed, 4 insertions, 0 deletions
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(); |
