mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-12-25 13:44:09 -08: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
|
@ -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