Update account management instructions in readme

This commit is contained in:
Harshad Sharma 2024-05-23 14:33:58 +05:30
parent 0b268f2cd1
commit 3f7bb9ab7e

View file

@ -29,23 +29,16 @@ Start Freedive:
Now you can visit [`localhost:4000`](http://localhost:4000) from your browser.
## User management
> Every user has full access to every part of the system via Freedive,
do NOT create accounts for people you do not trust to have root access
on this machine.
## Accounts
Create release:
Registering accounts via browser is enabled in dev envronment.
- `mix release --overwrite`
Visit [/users/register](http://localhost:4000/users/register) to create an account.
Create account on dev server
Then visit [/dev/mailbox](http://localhost:4000/dev/mailbox) to confirm the account.
- `_build/dev/rel/freedive/bin/freedive eval "Freedive.Release.account_create"`
Reset password for account on dev server
- `_build/dev/rel/freedive/bin/freedive eval "Freedive.Release.password_reset"`
Now you can ue these credentials to log in and explore Freedive.
### Deploy
@ -93,6 +86,10 @@ Create an account for yourself
- `service freedive account_create`
> Accounts have full access to every part of the system via Freedive,
do NOT create accounts for people you do not trust to have root access
on this machine.
Start Freedive
- `service freedive start`