Browse Source

Mention rails console user creation

pull/2968/head
Carolyn 2 months ago
parent
commit
e7a24df78d
  1. 3
      docs/setup.md

3
docs/setup.md

@ -187,7 +187,8 @@ Development mode will target the latest versions of Chrome, Firefox and Safari f
The Rails server will start on <http://localhost:3000>. The Rails server will start on <http://localhost:3000>.
To sign in locally, you can use any username and password from your local database. The seed task creates users in various roles all with the password `REVIEW_APP_USER_PASSWORD` from your .env file (which has default value `password`). To sign in locally, you can use any username and password from your local database. The seed task creates users in various roles all with the password `REVIEW_APP_USER_PASSWORD` from your .env file (which has default value `password`).
You can also create a user in the database manually with the details of your choice, but you will need to generate a correctly encrypted password. You can find the value to use for encrypted password which corresponds to the password `YOURPASSWORDHERE` using `User.new(:password => [YOURPASSWORDHERE]).encrypted_password`. To create any other users, you can edit the seed commands, or run similar commands in the rails console.
You can also insert a new user row using SQL, but you will need to generate a correctly encrypted password. You can find the value to use for encrypted password which corresponds to the password `YOURPASSWORDHERE` using `User.new(:password => [YOURPASSWORDHERE]).encrypted_password`.
### Debugging ### Debugging

Loading…
Cancel
Save