Compare commits

..

No commits in common. "3d340bf80395e5fdbc7cb9e04ee035e0fa6713c9" and "ae096ad60286a78ffb94104f4c13fae0a687e216" have entirely different histories.

View File

@ -491,7 +491,7 @@ WHERE id like ?
"
SELECT id, name, pw, deleted, last_access, dob, weight, sex, member_since_date, birthdate, mail, nickname, notes, phone, address, family_id
FROM user
WHERE lower(name)=?
WHERE name=?
",
name
)
@ -705,8 +705,8 @@ ORDER BY last_access DESC
}
pub async fn login(db: &SqlitePool, name: &str, pw: &str) -> Result<Self, LoginError> {
let name = name.trim().to_lowercase(); // just to make sure...
let Some(user) = User::find_by_name(db, &name).await else {
let name = name.trim(); // just to make sure...
let Some(user) = User::find_by_name(db, name).await else {
if ![
"n-sageder",
"p-hofer",
@ -737,7 +737,7 @@ ORDER BY last_access DESC
"d.kortschak",
"[login]",
]
.contains(&name.as_str())
.contains(&name)
{
Log::create(db, format!("Username ({name}) not found (tried to login)")).await;
}