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>
This commit is contained in:
Pavel Vomacka 2016-01-25 14:44:51 +01:00 committed by Petr Vobornik
parent d5674b1490
commit 3a0985b788

View File

@ -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();