mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-17 23:56:56 +00:00
fix(GODT-2913): Reduce the number of configuration failure detected.
This commit is contained in:
@ -32,7 +32,7 @@ type sharedIdentity interface {
|
||||
GetPrimaryAddress() (proton.Address, error)
|
||||
GetAddresses() []proton.Address
|
||||
WithAddrKR(addrID string, fn func(userKR, addrKR *crypto.KeyRing) error) error
|
||||
CheckAuth(email string, password []byte, telemetry Telemetry) (string, error)
|
||||
CheckAuth(email string, password []byte) (string, error)
|
||||
}
|
||||
|
||||
type rwIdentity struct {
|
||||
@ -102,11 +102,11 @@ func (r *rwIdentity) WithAddrKRs(fn func(*crypto.KeyRing, map[string]*crypto.Key
|
||||
return r.identity.WithAddrKRs(r.keyPassProvider.KeyPass(), fn)
|
||||
}
|
||||
|
||||
func (r *rwIdentity) CheckAuth(email string, password []byte, telemetry Telemetry) (string, error) {
|
||||
func (r *rwIdentity) CheckAuth(email string, password []byte) (string, error) {
|
||||
r.lock.RLock()
|
||||
defer r.lock.RUnlock()
|
||||
|
||||
return r.identity.CheckAuth(email, password, r.bridgePassProvider, telemetry)
|
||||
return r.identity.CheckAuth(email, password, r.bridgePassProvider)
|
||||
}
|
||||
|
||||
func (r *rwIdentity) Write(f func(identity *useridentity.State) error) error {
|
||||
|
||||
Reference in New Issue
Block a user