mirror of
https://github.com/notherealmarco/WASAPhoto.git
synced 2025-03-13 13:35:23 +01:00
Switch to case-insensitive in db-users:GetUserID
This commit is contained in:
parent
8a2399a8f7
commit
06b93b6f40
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ func (db *appdbimpl) UserExistsNotBanned(uid string, requesting_uid string) (boo
|
|||
// Get user id by username
|
||||
func (db *appdbimpl) GetUserID(name string) (string, error) {
|
||||
var uid string
|
||||
err := db.c.QueryRow(`SELECT "uid" FROM "users" WHERE "name" = ?`, name).Scan(&uid)
|
||||
err := db.c.QueryRow(`SELECT "uid" FROM "users" WHERE "name" LIKE ?`, name).Scan(&uid)
|
||||
return uid, err
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue