feat: sync langpack and auth updates

Sync telesrv commits 49f9bab and 04d9563 into the public mirror. Exclude private docs and runtime key material per sync rules.
This commit is contained in:
A 2026-07-18 00:07:41 +08:00
parent 6af61f26ba
commit 1292540350
244 changed files with 1552172 additions and 27668 deletions

View file

@ -35,7 +35,14 @@ type captureAuthService struct {
completedPasswordKey [8]byte
completePasswordCount int
codeDelivery domain.AuthCodeDelivery
signInCount int
signInPhone string
signInHash string
signInCode string
signInWithEmailCount int
signInWithEmailPhone string
signInWithEmailHash string
signInWithEmailCode string
}
type blockingUserAuthService struct {
@ -188,15 +195,22 @@ func (s *captureAuthService) CancelCode(context.Context, string, string) error {
return nil
}
func (s *captureAuthService) SignIn(context.Context, domain.Authorization, string, string, string) (domain.User, domain.Message, bool, error) {
func (s *captureAuthService) SignIn(_ context.Context, _ domain.Authorization, phone, hash, code string) (domain.User, domain.Message, bool, error) {
s.signInCount++
s.signInPhone = phone
s.signInHash = hash
s.signInCode = code
if s.signInUser.ID != 0 {
return s.signInUser, domain.Message{}, false, nil
}
return domain.User{}, domain.Message{}, false, nil
}
func (s *captureAuthService) SignInWithEmail(context.Context, domain.Authorization, string, string, string) (domain.User, domain.Message, bool, error) {
func (s *captureAuthService) SignInWithEmail(_ context.Context, _ domain.Authorization, phone, hash, code string) (domain.User, domain.Message, bool, error) {
s.signInWithEmailCount++
s.signInWithEmailPhone = phone
s.signInWithEmailHash = hash
s.signInWithEmailCode = code
if s.signInUser.ID != 0 {
return s.signInUser, domain.Message{}, false, nil
}