mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-07-22 22:40:56 -04:00
Username case insensitive, patch db instead of using LIKE
This commit is contained in:
parent
c79b2913a2
commit
b3ac7c3d43
3 changed files with 49 additions and 1 deletions
|
@ -15,7 +15,7 @@ exports.login = async function (username, password) {
|
|||
return null;
|
||||
}
|
||||
|
||||
let user = await R.findOne("user", " username LIKE ? AND active = 1 ", [
|
||||
let user = await R.findOne("user", " username = ? AND active = 1", [
|
||||
username,
|
||||
]);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue