mirror of
https://github.com/immich-app/immich.git
synced 2025-01-06 03:46:47 +01:00
fix(server): Admin user not created (#996)
This commit is contained in:
parent
88b8d34aa6
commit
a2f3b2199a
1 changed files with 0 additions and 1 deletions
|
@ -59,7 +59,6 @@ export class UserRepository implements IUserRepository {
|
||||||
user.salt = await bcrypt.genSalt();
|
user.salt = await bcrypt.genSalt();
|
||||||
user.password = await this.hashPassword(user.password, user.salt);
|
user.password = await this.hashPassword(user.password, user.salt);
|
||||||
}
|
}
|
||||||
user.isAdmin = false;
|
|
||||||
|
|
||||||
return this.userRepository.save(user);
|
return this.userRepository.save(user);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue