Logo
Explore Help
Sign In
TheArchive/zitadel
1
0
Fork 0
You've already forked zitadel
mirror of https://github.com/zitadel/zitadel.git synced 2025-08-17 13:37:42 +00:00
Code Issues Packages Projects Releases Wiki Activity
Files
a637ae5aa5a826759c9cfb1e06de0a35875e6684
zitadel/internal/command/errors/errors.go

10 lines
135 B
Go
Raw Normal View History

feat(session/v2): user password lockout error response (#9233) # Which Problems Are Solved Adds `failed attempts` field to the grpc response when a user enters wrong password when logging in FYI: this only covers the senario above; other senarios where this is not applied are: SetPasswordWithVerifyCode setPassword ChangPassword setPasswordWithPermission # How the Problems Are Solved Created new grpc message `CredentialsCheckError` - `proto/zitadel/message.proto` to include `failed_attempts` field. Had to create a new package - `github.com/zitadel/zitadel/internal/command/errors` to resolve cycle dependency between `github.com/zitadel/zitadel/internal/command` and `github.com/zitadel/zitadel/internal/command`. # Additional Changes - none # Additional Context - Closes https://github.com/zitadel/zitadel/issues/9198 --------- Co-authored-by: Iraq Jaber <IraqJaber@gmail.com>
2025-01-29 10:29:00 +00:00
package errors
type WrongPasswordError struct {
FailedAttempts int32
}
func (wpe *WrongPasswordError) Error() string {
return ""
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.4 Page: 1081ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API