Hello again, 

another patch is ready for reviewing. Now it is the patch which adds support 
for user parameter for /ipa/ui/reset_password.html page. That means that you 
can prefill username field by using url parameter 'user'. Here is the ticket 
link: https://fedorahosted.org/freeipa/ticket/5001 .

Pavel Vomacka 
Intern
From 1ee0ea7aad2ccb39a070e3a5dc4a8732a2ff08cc Mon Sep 17 00:00:00 2001
From: Pavel Vomacka <pvoma...@redhat.com>
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
---
 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 2e0db7db8049aa3edc9bccbfe87b7224d3a68878..8dcdefdd03295450a715405a2cf8d66f9bbc44ac 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();
-- 
2.5.0

-- 
Manage your subscription for the Freeipa-devel mailing list:
https://www.redhat.com/mailman/listinfo/freeipa-devel
Contribute to FreeIPA: http://www.freeipa.org/page/Contribute/Code

Reply via email to