mirror of
https://github.com/andwati/zitadel.git
synced 2026-11-04 05:12:16 +00:00
# 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 <[email protected]>
22 lines
355 B
Protocol Buffer
22 lines
355 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package zitadel.v1;
|
|
|
|
option go_package = "github.com/zitadel/zitadel/pkg/grpc/message";
|
|
|
|
message ErrorDetail {
|
|
string id = 1;
|
|
string message = 2;
|
|
}
|
|
|
|
message CredentialsCheckError {
|
|
string id = 1;
|
|
string message = 2;
|
|
int32 failed_attempts = 3;
|
|
}
|
|
|
|
message LocalizedMessage {
|
|
string key = 1;
|
|
string localized_message = 2;
|
|
}
|