mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 18:17:35 +00:00
feat: add hide password reset to login policy (#1806)
* feat: add hide password reset to login policy * feat: tests * feat: hide password reset in login * feat: hide password reset to frontend * feat: hide password reset to frontend * feat: hide password reset to frontend * feat: check feature * feat: feature in frontend
This commit is contained in:
@@ -2194,6 +2194,7 @@ message SetDefaultFeaturesRequest {
|
||||
bool password_complexity_policy = 11;
|
||||
bool label_policy = 12;
|
||||
bool custom_domain = 13;
|
||||
bool login_policy_password_reset = 14;
|
||||
}
|
||||
|
||||
message SetDefaultFeaturesResponse {
|
||||
@@ -2224,6 +2225,7 @@ message SetOrgFeaturesRequest {
|
||||
bool password_complexity_policy = 12;
|
||||
bool label_policy = 13;
|
||||
bool custom_domain = 14;
|
||||
bool login_policy_password_reset = 15;
|
||||
}
|
||||
|
||||
message SetOrgFeaturesResponse {
|
||||
@@ -2421,6 +2423,11 @@ message UpdateLoginPolicyRequest {
|
||||
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
||||
description: "defines if passwordless is allowed for users"
|
||||
}];
|
||||
bool hide_password_reset = 6 [
|
||||
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
||||
description: "defines if password reset link should be shown in the login screen"
|
||||
}
|
||||
];
|
||||
}
|
||||
|
||||
message UpdateLoginPolicyResponse {
|
||||
|
@@ -21,6 +21,7 @@ message Features {
|
||||
bool password_complexity_policy = 10;
|
||||
bool label_policy = 11;
|
||||
bool custom_domain = 12;
|
||||
bool login_policy_password_reset = 13;
|
||||
}
|
||||
|
||||
message FeatureTier {
|
||||
|
@@ -3373,6 +3373,7 @@ message AddCustomLoginPolicyRequest {
|
||||
bool allow_external_idp = 3;
|
||||
bool force_mfa = 4;
|
||||
zitadel.policy.v1.PasswordlessType passwordless_type = 5 [(validate.rules).enum = {defined_only: true}];
|
||||
bool hide_password_reset = 6;
|
||||
}
|
||||
|
||||
message AddCustomLoginPolicyResponse {
|
||||
@@ -3385,6 +3386,7 @@ message UpdateCustomLoginPolicyRequest {
|
||||
bool allow_external_idp = 3;
|
||||
bool force_mfa = 4;
|
||||
zitadel.policy.v1.PasswordlessType passwordless_type = 5 [(validate.rules).enum = {defined_only: true}];
|
||||
bool hide_password_reset = 6;
|
||||
}
|
||||
|
||||
message UpdateCustomLoginPolicyResponse {
|
||||
|
@@ -77,6 +77,11 @@ message LoginPolicy {
|
||||
description: "defines if the organisation's admin changed the policy"
|
||||
}
|
||||
];
|
||||
bool hide_password_reset = 8 [
|
||||
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
||||
description: "defines if password reset link should be shown in the login screen"
|
||||
}
|
||||
];
|
||||
}
|
||||
|
||||
enum SecondFactorType {
|
||||
|
Reference in New Issue
Block a user