root-gg / plik

Plik is a temporary file upload system (Wetransfer like) in Go.

Home Page:https://plik.root.gg

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can only create one local user

Ronaldr1985 opened this issue · comments

Can successfully create a local admin user using the command
plikd --config /etc/plikd.cfg --login root user create --name Admin --provider local
However, if I then try to create another user with
plikd --config /etc/plikd.cfg --login root user create --name ronaldr1985 --provider local
then I get
User already exists
Even after verifying that the user doesn't exist with
plikd --config /etc/plikd.cfg --login root user list

commented

Your Login is --login root for both users

Login: loginname
Name: displayname (not login)

you are using the same login twice which is root so its duplicate

Apologies, I didn't realise that is what login meant. Might be worth changing the help to read something like:
--login is the login name for the user
Just to make it more clear. Feel free to close the issue.