GODT-1358: Fix wording

This commit is contained in:
Alexander Bilyak
2021-10-07 11:18:40 +00:00
committed by Jakub
parent ef051d5ed6
commit 94347d95df
12 changed files with 43 additions and 17 deletions

View File

@ -39,6 +39,12 @@ func (f *FrontendQt) login(username, password string) {
f.authClient, f.auth, err = f.bridge.Login(username, f.password)
if err != nil {
if err == pmapi.ErrPasswordWrong {
// Remove error message since it is hardcodded in QML.
f.qml.LoginUsernamePasswordError("")
f.loginClean()
return
}
if err == pmapi.ErrPaidPlanRequired {
f.qml.LoginFreeUserError()
f.loginClean()
@ -50,7 +56,7 @@ func (f *FrontendQt) login(username, password string) {
}
if f.auth.HasTwoFactor() {
f.qml.Login2FARequested()
f.qml.Login2FARequested(username)
return
}
if f.auth.HasMailboxPassword() {