mirror of
https://github.com/notherealmarco/WASAPhoto.git
synced 2025-05-05 12:22:35 +02: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
|
// Get user id by username
|
||||||
func (db *appdbimpl) GetUserID(name string) (string, error) {
|
func (db *appdbimpl) GetUserID(name string) (string, error) {
|
||||||
var uid string
|
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
|
return uid, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue