fix: auth robot test

This commit is contained in:
Louis Auzuret
2022-06-20 17:10:07 +02:00
committed by Bluub
parent 061e0188f0
commit cdca0d4942
7 changed files with 115 additions and 4 deletions

View File

@@ -12,7 +12,7 @@ export class AuthService {
) {}
async validateUser(username: string, password: string): Promise<PayloadInterface> {
const user = await this.userService.user({username});
const user = await this.userService.user({username});
if (user && bcrypt.compareSync(password, user.password)) {
return {
username: user.username,