HM-131. Исправлена орфографическая ошибка

This commit is contained in:
vigdorov
2020-09-10 23:17:07 +03:00
parent 5dd2646d1a
commit cb09e7839e

View File

@ -180,7 +180,7 @@ export class UserService {
return this.generateTokens(login, agent); return this.generateTokens(login, agent);
} }
throw new BadRequestException('Не верный логин или пароль'); throw new BadRequestException('Неверный логин или пароль');
} }
verifyToken(token: string, secret: string): void { verifyToken(token: string, secret: string): void {
@ -249,7 +249,7 @@ export class UserService {
} }
const user = await this.userModel().findOne({login}); const user = await this.userModel().findOne({login});
if (!await this.checkPassword(old_password, user.password)) { if (!await this.checkPassword(old_password, user.password)) {
throw new BadRequestException('Не верный старый пароль'); throw new BadRequestException('Неверный старый пароль');
} }
if (user) { if (user) {
const salt = user.salt; const salt = user.salt;