linuxserver / docker-speedtest-tracker

GNU General Public License v3.0
87 stars 2 forks source link

[FEAT] User definition and user management #15

Closed AxelOvelacq closed 2 months ago

AxelOvelacq commented 5 months ago

Is this a new feature request?

Wanted change

Define default user credentials and/or create and delete users via an API or php command

Reason for change

This eliminates the need to manually access the WebUI to edit users in the case of automated deployment, with an orchestrator for example.

Proposed code change

php commands :

php artisan user:add [--password-from-env] [--generate-password] [--password PASSWORD] [--name DISPLAY-NAME] [--role ROLE] [--email EMAIL] [--uid UID]
php artisan user:delete <uid>
php artisan user:info
php artisan user:list
...

Environment variable to set default user creds:

DEFAULT_USER_NAME: Username
DEFAULT_USER_EMAIL: mail@domain.tld
DEFAULT_USER_PASSWORD: strongpassword
github-actions[bot] commented 5 months ago

Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.

aptalca commented 5 months ago

https://www.linuxserver.io/blog/2019-09-14-customizing-our-containers

AxelOvelacq commented 5 months ago

Thanks @aptalca for your reply. However, I didn't see anything on the page you shared about adding users. Could you please be a little more explicit?

alexjustesen commented 5 months ago

@AxelOvelacq you're looking to suggest a new feature on the application and not the container, open an issue here and I'll take a look at it.

https://github.com/alexjustesen/speedtest-tracker

LinuxServer-CI commented 4 months ago

This issue has been automatically marked as stale because it has not had recent activity. This might be due to missing feedback from OP. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] commented 1 month ago

This issue is locked due to inactivity