Upload profile picture and convert into webp

This commit is contained in:
Alex Tran
2022-05-27 22:15:35 -05:00
parent c28251b8b4
commit e33566a04a
6 changed files with 94 additions and 10 deletions

View File

@@ -19,7 +19,7 @@ export class AuthService {
private async validateUser(loginCredential: LoginCredentialDto): Promise<UserEntity> {
const user = await this.userRepository.findOne(
{ email: loginCredential.email },
{ select: ['id', 'email', 'password', 'salt', 'firstName', 'lastName', 'isAdmin'] },
{ select: ['id', 'email', 'password', 'salt', 'firstName', 'lastName', 'isAdmin', 'profileImagePath', 'isFirstLoggedIn'] },
);
const isAuthenticated = await this.validatePassword(user.password, loginCredential.password, user.salt);