[Freeipa-devel] [PATCH] 715 webui: add bounce url to reset_password.html

Petr Vobornik pvoborni at redhat.com
Mon Jul 28 08:58:20 UTC 2014


On 25.7.2014 22:27, Endi Sukma Dewata wrote:
> On 7/23/2014 9:59 AM, Petr Vobornik wrote:
>> reset_password.html now redirects browser to URL specified in 'redirect'
>> uri component (if present).
>>
>> The component has to be URI encoded. ie (in browser console):
>>
>> $
>> encodeURIComponent('http://pvoborni.fedorapeople.org/doc/#!/guide/Debugging')
>>
>>
>>
>> -->
>> "http%3A%2F%2Fpvoborni.fedorapeople.org%2Fdoc%2F%23!%2Fguide%2FDebugging"
>>
>> -->
>>
>> https://my.freeipa.server/ipa/ui/reset_password.html?redirect=http%3A%2F%2Fpvoborni.fedorapeople.org%2Fdoc%2F%23!%2Fguide%2FDebugging
>>
>>
>>
>> https://fedorahosted.org/freeipa/ticket/4440
>
> ACK.

Pushed to:
master: 8288135b5b218cd63d5f5bfba59f6d1f9657af2d
ipa-4-1: 8288135b5b218cd63d5f5bfba59f6d1f9657af2d

Not closing the ticket yet.

> Just one thing, there is no pause between clicking the Reset button
> and the redirection, so the "Password reset was successful."
> confirmation message might only appear very briefly. A possible
> alternative is to show a confirmation page/message, but the user will
> have to click to continue to the next page.
>

I don't believe there is a universal solution. I would say that it 
depends on personal preferences and a use case. I.e., if it's part of  a 
login procedure I would prefer immediate redirection back to login page. 
If it's invoked from a user action - just to change the password, some 
delay might be good.

We might add a URL param(s) to configure the delay/link.

-- 
Petr Vobornik




More information about the Freeipa-devel mailing list