fix(BRIDGE-424): patch second password prompt
This commit is contained in:
@ -1277,6 +1277,10 @@ QtObject {
|
||||
function onLoginFidoError(errorMsg) {
|
||||
root.touchFidoKey.reset();
|
||||
}
|
||||
function onLogin2PasswordRequested(_) {
|
||||
root.touchFidoKey.reset();
|
||||
}
|
||||
|
||||
target: Backend
|
||||
}
|
||||
}
|
||||
|
||||
@ -133,7 +133,8 @@ FocusScope {
|
||||
errorLabel.text = qsTr("Incorrect login credentials. Please try again.");
|
||||
}
|
||||
function onLogin2PasswordRequested(username) {
|
||||
console.assert(stackLayout.currentIndex === Login.RootStack.Login || stackLayout.currentIndex === Login.RootStack.TOTP, "Unexpected login2PasswordRequested");
|
||||
console.assert(stackLayout.currentIndex === Login.RootStack.Login || stackLayout.currentIndex === Login.RootStack.FIDO || stackLayout.currentIndex === Login.RootStack.TOTP, "Unexpected login2PasswordRequested");
|
||||
fidoLayout.reset();
|
||||
stackLayout.currentIndex = Login.RootStack.MailboxPassword;
|
||||
mailboxPasswordUsernameLabel.text = username;
|
||||
secondPasswordTextField.focus = true;
|
||||
|
||||
Reference in New Issue
Block a user