unlockDialog: Support request type of REUSE_USERNAME

The unlock dialog currently fails to reuse the username, when requested
to do so. This commit fixes that.
This commit is contained in:
Ray Strode 2024-02-06 13:41:39 -05:00
parent 81d1903c4d
commit ec6f4da20d

View file

@ -786,7 +786,7 @@ export const UnlockDialog = GObject.registerClass({
_onReset(authPrompt, beginRequest) {
let userName;
if (beginRequest === AuthPrompt.BeginRequestType.PROVIDE_USERNAME) {
if (beginRequest !== AuthPrompt.BeginRequestType.DONT_PROVIDE_USERNAME) {
this._authPrompt.setUser(this._user);
userName = this._userName;
} else {