mirror of
https://github.com/ajnart/homarr.git
synced 2026-02-18 04:27:02 +01:00
🐛 Print user.name instead of id on auth.
This commit is contained in:
@@ -157,15 +157,15 @@ export const constructAuthOptions = (
|
||||
return null;
|
||||
}
|
||||
|
||||
Consola.log(`user ${user.id} is trying to log in. checking password...`);
|
||||
Consola.log(`user ${user.name} is trying to log in. checking password...`);
|
||||
const isValidPassword = await bcrypt.compare(data.password, user.password);
|
||||
|
||||
if (!isValidPassword) {
|
||||
Consola.log(`password for user ${user.id} was incorrect`);
|
||||
Consola.log(`password for user ${user.name} was incorrect`);
|
||||
return null;
|
||||
}
|
||||
|
||||
Consola.log(`user ${user.id} successfully authorized`);
|
||||
Consola.log(`user ${user.name} successfully authorized`);
|
||||
|
||||
return {
|
||||
id: user.id,
|
||||
|
||||
Reference in New Issue
Block a user