mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-23 23:04:04 +00:00
Auth: Case insensitive login check on username
Allows users to add users with capital letters and then login with just lowercase letters. We accidentally capitalized the first letter of our username so the other people using it frequently thinks they wrote the wrong password.
This commit is contained in:
parent
b58b83541b
commit
c79b2913a2
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ exports.login = async function (username, password) {
|
|||
return null;
|
||||
}
|
||||
|
||||
let user = await R.findOne("user", " username = ? AND active = 1 ", [
|
||||
let user = await R.findOne("user", " username LIKE ? AND active = 1 ", [
|
||||
username,
|
||||
]);
|
||||
|
||||
|
|
Loading…
Reference in a new issue