root-gg / plik

Plik is a temporary file upload system (Wetransfer like) in Go.
https://plik.root.gg
Other
1.47k stars 168 forks source link

Can only create one local user #468

Closed Ronaldr1985 closed 1 year ago

Ronaldr1985 commented 1 year ago

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

e0xify commented 1 year ago

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

Ronaldr1985 commented 1 year ago

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.