GNOME Bugzilla – Bug 684492
can't set a password for a passwordless user
Last modified: 2012-09-24 19:51:01 UTC
I was on a live cd, so my user didn't have a password. The user panel correctly says 'None' for the password. But when I try to enter a new password in the dialog (leaving the 'old password' field blank), the 'change' button never goes sensitive. We are not supposed to show the 'old password' field in this case anyway.
Ondrej, want to look into that?
Created attachment 224990 [details] [review] users: Don't ask for the old password when none is set This prevents passwordless users (common on live cd setups) from setting a password.
Review of attachment 224990 [details] [review]: Looks fine to me.
Should we be handling UM_PASSWORD_MODE_ENABLED too?
I don't think it applies to UM_PASSWORD_MODE_ENABLED, really. The mode is enabled only if you re-eanble a previously disable (ie locked) account. In that case, you don't get the old password field.
Those modes are a bit iffy, since we map them to a smaller set + a boolean in the accountsservice (regular/set-at-login/none, plus a locked boolean)
Fixing that iffiness will come as a side-effect of porting to libaccountsservice, I think.
Attachment 224990 [details] pushed as a80b3d7 - users: Don't ask for the old password when none is set