SUPPORT-9001: remove ugly

This commit is contained in:
adel.ka 2025-03-14 13:26:20 +03:00
parent 5d5b02ec83
commit 80cd9ef064
6 changed files with 0 additions and 52 deletions

View file

@ -12,19 +12,6 @@ export class FieldChecker extends Behavior {
this.control = this.getScript('component.ControlWithValue');
}
@Visible()
passwordCheck(login: string) {
return this.client.get<boolean>(`user/password/check?login=${encodeURIComponent(login)}`)
.toPromise()
.then((isExpired: boolean) => {
this.control.setValue(isExpired);
})
.catch((error) => {
console.error("Ошибка при проверке пароля:", error);
this.control.setValue(null);
});
}
@Visible()
userExists(login: string) {
return this.client.get<boolean>(`user/exists?login=${encodeURIComponent(login)}`)