mirror of
https://github.com/ajnart/homarr.git
synced 2026-02-27 00:40:58 +01:00
fix: Allow username to be capitalized on basic credentials login (#1585)
This commit is contained in:
@@ -11,7 +11,7 @@ export const authorizeWithBasicCredentialsAsync = async (
|
||||
credentials: z.infer<typeof validation.user.signIn>,
|
||||
) => {
|
||||
const user = await db.query.users.findFirst({
|
||||
where: and(eq(users.name, credentials.name), eq(users.provider, "credentials")),
|
||||
where: and(eq(users.name, credentials.name.toLowerCase()), eq(users.provider, "credentials")),
|
||||
});
|
||||
|
||||
if (!user?.password) {
|
||||
|
||||
Reference in New Issue
Block a user