mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-24 16:10:02 -06:00
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:
parent
d5674b1490
commit
3a0985b788
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user