[Freeipa-devel] [PATCH] 157 Added password reset capabilities to unauthorized dialog

Petr Vobornik pvoborni at redhat.com
Thu Jun 21 11:26:22 UTC 2012


On 06/20/2012 06:46 PM, Endi Sukma Dewata wrote:
> ACK, but feel free to make additional minor changes as suggested below
> before push.

Pushed to master. I added some of the minor changes (patch attached for 
completeness).

>
> On 6/19/2012 9:01 AM, Petr Vobornik wrote:
>> In general I like simplifying the dialog so I took most of your
>> suggestions and implemented them following way:
>>
>> Login
>> -----------------------------------------------------
>>
>> Your session has expired. Please re-login.
>>
>> To login with Kerberos, please make sure you
>> have valid tickets (obtainable via kinit) and
>> [configured] the browser correctly.
>>
>> To login with username and password:
>>
>> Username: [edewata ]
>> Password: [******** ]
>>
>> [Login]
>>
>> So I just changed the order and kept only one button. If username and
>> password are filled it uses form-based auth otherwise it uses kerberos
>> auth. I'm not sure if it is straightforward but it is easy to use.
>
> The layout looks good. I think to avoid confusion the text should
> mention what needs to be done in each login option, something like this:
>
> To login with Kerberos, please make sure you have valid tickets
> (obtainable via kinit) and [configured] the browser correctly,
> then click Login.
>
> To login with username and password, enter them in the fields
> below then click Login.

Used both.

>
> Another thing, when I fill in the username a red star (required marker)
> appears next to the password field, and disappears when I remove the
> username. I don't think we need to display it because it's pretty clear
> from the text that either you don't fill in anything or you fill in both
> fields. Less surprises is better, but I'll let you decide.
>

IMO it doesn't do any damage. It also enables required-validation so 
'required field' message is displayed when user forgets to enter 
password. I left it there.

>> I followed all suggestion in the reset part.
>>
>> I have to place to the forms error box. I'm not sure about the position
>> though.
>>
>> Updated patch attached.
>
> I think this is fine. Another option is to show the error box between
> the fields and the buttons, this way the content don't shift too much
> when the error appears. Same thing for the login page.

Left it unchanged.

>
> In the Reset page if you click Cancel it goes back to the Login page,
> but the username & password are still showing the old values. I think
> the username_widget and password_widget should be cleared as well. What
> do you think?

Done.

>
> One more thing, this dialog has an X button at the top right corner so
> people can close it. If it's closed it will show a blank page without a
> way to open it again. Maybe it should go to the unauthorized.html? This
> can be fixed separately.
>

I want to fix the X button separately. Probably we don't handle it well 
in other dialogs too.


-- 
Petr Vobornik
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeipa-pvoborni-0157-2-Added-password-reset-capabilities-to-unauthorized-di.patch
Type: text/x-patch
Size: 24426 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20120621/059e9ade/attachment.bin>


More information about the Freeipa-devel mailing list