File tree Expand file tree Collapse file tree 1 file changed +24
-1
lines changed
Expand file tree Collapse file tree 1 file changed +24
-1
lines changed Original file line number Diff line number Diff line change @@ -132,7 +132,7 @@ export ROCKET_DATABASES='{rockpass = { url = "/location/of/rockpass.sqlite" }}'
132132rockpass
133133```
134134
135- Finally if you want to execute the server witout database (for testing) you
135+ Finally if you want to execute the server without database (for testing) you
136136can configure ` url ` as ` :memory: ` .
137137```
138138ROCKET_DATABASES='{rockpass = { url = ":memory:" }}' rockpass
@@ -142,6 +142,29 @@ ROCKET_DATABASES='{rockpass = { url = ":memory:" }}' rockpass
142142
143143## Known limitations
144144
145+ ### Password reset
146+
147+ With the premise in mind of keeping the code simple (remember that it is for
148+ personal use), Rockpass has not implemented any password reset API. But if
149+ any user does not remember their password you can reset it to a default
150+ value. For example, to reset the user _ user@example.com _ password.
151+
152+ 1 . _ Connect_ to database.
153+ ``` sh
154+ sqlite3 /location/of/rockpass.sqlite
155+ ```
156+ 2 . Update password to a default ` 123456 ` value.
157+ ``` sql
158+ UPDATE users SET
159+ password= ' $2b$10$jJXcsuftQI9PwF8eqZo4/ObfBGbc.nhLBpV49fC4qeLLeh/Uz0YzW'
160+ WHERE email = ' user@example.com' ;
161+ ```
162+
163+ Now you can login with your username ` user@example.com ` and ` 123456 ` as
164+ password. Don't forget to change it after login!
165+
166+ ### Delete an user
167+
145168For now, user deletion cannot be done via API. If you want to delete an user
146169you can do it with ` sqlite ` command. For example to delete user
147170_ user@example.com _ and all of his/her passwords settings.
You can’t perform that action at this time.
0 commit comments