Bug 374787

Summary: password dialog weirdness
Product: [openSUSE] openSUSE 11.0 Reporter: Steffen Winterfeldt <snwint>
Component: YaST2Assignee: Jiří Suchomel <jsuchome>
Status: RESOLVED FIXED QA Contact: Jiri Srain <jsrain>
Severity: Normal    
Priority: P5 - None    
Version: Factory   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Steffen Winterfeldt 2008-03-28 13:57:44 UTC
[seen during installation in the 'create new user' dialog]

If you leave that dialog and then go back to it, the password field
is always pre-filled with five '*'s. I can understand that it did not
store the unencrypted password, but it even lets you edit that password
and I've no idea what the new password is!

IMO it should either remember the password and prefill the input field
correctly or not at all.
Comment 1 Jiří Suchomel 2008-03-28 15:29:26 UTC
Do you mean the user or the root dialog? For root, it is known (fixed) bug. For first user, it works for me: * are shown only when I already set some password but when I leave the dialog empty, go next and back, the entries are empty.
Comment 2 Steffen Winterfeldt 2008-03-28 16:28:44 UTC
The user dialog. I'm talking about choosing a password, leaving and going back.
Comment 3 Jiří Suchomel 2008-03-31 07:13:09 UTC
Sorry, I still don't understand. You did fill user data, didn't you? If you did, you know the password.

Or you only filled the password without entering user name and went to the next dialog? This case works correctly for me: when I go back, no * are shown.
Comment 4 Steffen Winterfeldt 2008-03-31 08:07:59 UTC
Ok, try this:

- set password to 'foobar'
- leave dialog
- come back (because, say, yast complained the password was too simple)
- append '1' to password

Big question: what is the password now?
Comment 5 Jiří Suchomel 2008-03-31 08:35:55 UTC
(In reply to comment #4 from Steffen Winterfeldt)

> Big question: what is the password now?

Ah, this question: good one. If you really left the dialog, than the current would be *****1. It is strange? Yes, but imho the usage (appending 1 to the end) is also strange.

(In reply to comment #0 from Steffen Winterfeldt)
> IMO it should either remember the password and prefill the input field
> correctly or not at all.

I think that something should be prefiled, so user knows there is something set.
I could change it to fill the real password (yes, it is remembered).

Comment 6 Steffen Winterfeldt 2008-03-31 09:13:17 UTC
Sure, editing a password is not really common. But you allow it and so
it should more or less work.

If you know the real one, yes, please fill it in. Else my suggestion would
have been to clear the input field once the user starts editing.
Comment 7 Jiří Suchomel 2008-03-31 14:00:31 UTC
fixed in yast2-users-2.16.21