hooram / ownphotos

Self hosted alternative to Google Photos

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Admin user creation

NickBolles opened this issue · comments

Small bug report that I just ran into where if you use a capital letter in the admin username you can't login because everything else lowercases the username (as it should). The fix is to not use capitals in the username or to lowercase it in entrypoint.sh when we create the user.

if ADMIN_USERNAME = Nick

Created in Database as "Nick"

image

and try to login with "Nick"

image

the client lowercases it in the response

image

Confirmed that If I delete the user in the database and change ADMIN_USERNAME to "nick" it works as expected. Whether I enter "Nick" or "nick" as the username on the client