fix(BRIDGE-424): patch second password prompt

This commit is contained in:
Atanas Janeshliev
2025-09-30 12:25:28 +02:00
parent cd375c81fa
commit ac3d7375f7
4 changed files with 18 additions and 1 deletions

View File

@ -25,6 +25,7 @@ import (
"fmt"
"github.com/ProtonMail/gluon/async"
"github.com/ProtonMail/go-proton-api"
"github.com/ProtonMail/proton-bridge/v3/internal/fido"
"github.com/keys-pub/go-libfido2"
"google.golang.org/protobuf/types/known/emptypb"
@ -104,6 +105,11 @@ func (s *Service) LoginFido(_ context.Context, login *LoginRequest) (*emptypb.Em
return
}
if s.auth.PasswordMode == proton.TwoPasswordMode {
_ = s.SendEvent(NewLoginTwoPasswordsRequestedEvent(login.Username))
return
}
s.finishLogin()
}()