@@ -674,6 +674,13 @@ export default class Client4 {
|
||||
);
|
||||
};
|
||||
|
||||
resetFailedAttempts = (userId: string) => {
|
||||
return this.doFetch<StatusOK>(
|
||||
`${this.getUserRoute(userId)}/reset_failed_attempts`,
|
||||
{method: 'post'},
|
||||
);
|
||||
};
|
||||
|
||||
getKnownUsers = () => {
|
||||
return this.doFetch<Array<UserProfile['id']>>(
|
||||
`${this.getUsersRoute()}/known`,
|
||||
|
||||
@@ -709,6 +709,7 @@ export type LdapSettings = {
|
||||
LoginButtonColor: string;
|
||||
LoginButtonBorderColor: string;
|
||||
LoginButtonTextColor: string;
|
||||
MaximumLoginAttempts: number;
|
||||
};
|
||||
|
||||
export type ComplianceSettings = {
|
||||
|
||||
@@ -60,6 +60,7 @@ export type UserProfile = {
|
||||
terms_of_service_create_at: number;
|
||||
remote_id?: string;
|
||||
status?: string;
|
||||
failed_attempts?: number;
|
||||
custom_profile_attributes?: Record<string, string>;
|
||||
};
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user