SUPPORT-9001: remove ugly
This commit is contained in:
parent
5d5b02ec83
commit
80cd9ef064
6 changed files with 0 additions and 52 deletions
|
|
@ -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)}`)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue