mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-17 23:56:56 +00:00
GODT-1346: GODT-1340 GODT-1315 QML changes
GODT-1365: Create ComboBox component GODT-1338: GODT-1343 Help view buttons GODT-1340: Not crashing, user list updating in main thread. GODT-1345: adding panic handlers
This commit is contained in:
@ -40,8 +40,13 @@ var (
|
||||
log = logrus.WithField("pkg", "users") //nolint[gochecknoglobals]
|
||||
isApplicationOutdated = false //nolint[gochecknoglobals]
|
||||
|
||||
// ErrWrongMailboxPassword is returned when login password is OK but not the mailbox one.
|
||||
// ErrWrongMailboxPassword is returned when login password is OK but
|
||||
// not the mailbox one.
|
||||
ErrWrongMailboxPassword = errors.New("wrong mailbox password")
|
||||
|
||||
// ErrUserAlreadyConnected is returned when authentication was OK but
|
||||
// there is already active account for this user.
|
||||
ErrUserAlreadyConnected = errors.New("user is already connected")
|
||||
)
|
||||
|
||||
// Users is a struct handling users.
|
||||
@ -212,7 +217,7 @@ func (u *Users) FinishLogin(client pmapi.Client, auth *pmapi.Auth, password []by
|
||||
logrus.WithError(err).Warn("Failed to delete new auth session")
|
||||
}
|
||||
|
||||
return nil, errors.New("user is already connected")
|
||||
return nil, ErrUserAlreadyConnected
|
||||
}
|
||||
|
||||
// Update the user's credentials with the latest auth used to connect this user.
|
||||
|
||||
Reference in New Issue
Block a user