HM-131. Исправлена орфографическая ошибка
This commit is contained in:
@ -180,7 +180,7 @@ export class UserService {
|
||||
return this.generateTokens(login, agent);
|
||||
}
|
||||
|
||||
throw new BadRequestException('Не верный логин или пароль');
|
||||
throw new BadRequestException('Неверный логин или пароль');
|
||||
}
|
||||
|
||||
verifyToken(token: string, secret: string): void {
|
||||
@ -249,7 +249,7 @@ export class UserService {
|
||||
}
|
||||
const user = await this.userModel().findOne({login});
|
||||
if (!await this.checkPassword(old_password, user.password)) {
|
||||
throw new BadRequestException('Не верный старый пароль');
|
||||
throw new BadRequestException('Неверный старый пароль');
|
||||
}
|
||||
if (user) {
|
||||
const salt = user.salt;
|
||||
|
||||
Reference in New Issue
Block a user