mirror of
https://github.com/andwati/zitadel.git
synced 2026-11-04 05:12:16 +00:00
feat: provide option to limit (T)OTP checks (#7693)
* feat: provide option to limit (T)OTP checks * fix requests in console * update errors pkg * cleanup * cleanup * improve naming of existing config
This commit is contained in:
@@ -957,9 +957,13 @@ export class AdminService {
|
||||
return this.grpcService.admin.getLockoutPolicy(req, null).then((resp) => resp.toObject());
|
||||
}
|
||||
|
||||
public updateLockoutPolicy(maxAttempts: number): Promise<UpdateLockoutPolicyResponse.AsObject> {
|
||||
public updateLockoutPolicy(
|
||||
maxPasswordAttempts: number,
|
||||
maxOTPAttempts: number,
|
||||
): Promise<UpdateLockoutPolicyResponse.AsObject> {
|
||||
const req = new UpdateLockoutPolicyRequest();
|
||||
req.setMaxPasswordAttempts(maxAttempts);
|
||||
req.setMaxPasswordAttempts(maxPasswordAttempts);
|
||||
req.setMaxOtpAttempts(maxOTPAttempts);
|
||||
|
||||
return this.grpcService.admin.updateLockoutPolicy(req, null).then((resp) => resp.toObject());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user