manual password reset doc
This commit is contained in:
parent
1196ef362d
commit
29f324d4d9
@ -1,13 +1,34 @@
|
|||||||
# Manually Resetting a User's Password
|
# Manually Setting a User's Password
|
||||||
|
|
||||||
Open a shell in your instance's environment and start an interactive Ruby
|
There just isn't an Admin web interface for setting a user's password. You can reset a password and have the new one emailed to them by the system, but it's not possible to just directly set a user's login password using the Admin interface.
|
||||||
interpreter:
|
|
||||||
|
If you are operating in a production environment, you can attach to a running container and execute a Bash shell:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
docker ps | grep live_web | awk '{ print $NF }'
|
||||||
|
```
|
||||||
|
|
||||||
|
This will output something like:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
live_web_1
|
||||||
|
```
|
||||||
|
|
||||||
|
You can attach to that running container using:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
docker exec -ti live_web_1 bash
|
||||||
|
```
|
||||||
|
|
||||||
|
## Set New User Password
|
||||||
|
|
||||||
|
Start an interactive Ruby interpreter:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
cd ~/live
|
|
||||||
bin/rails c
|
bin/rails c
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
In the Ruby shell, you are going to load the account record, load the user
|
In the Ruby shell, you are going to load the account record, load the user
|
||||||
record for that account, change the password for the User object, and save the
|
record for that account, change the password for the User object, and save the
|
||||||
User object.
|
User object.
|
||||||
|
Loading…
Reference in New Issue
Block a user