| 16 | | == User Management == |
| 17 | | === Approve a Pending User's registration === |
| 18 | | {{{ |
| 19 | | /eden/admin/user |
| 20 | | }}} |
| 21 | | |
| 22 | | Find user & remove the 'Pending' flag |
| 23 | | |
| 24 | | === Reset password from CLI === |
| 25 | | If you have CLI access to an instance, but don't know the password for an admin login then you can reset a password: |
| 26 | | {{{ |
| 27 | | w2p |
| 28 | | import hmac |
| 29 | | import hashlib |
| 30 | | alg = hashlib.sha512 |
| 31 | | hmac_key = auth.settings.hmac_key |
| 32 | | password = hmac.new(hmac_key, "newpassword", alg).hexdigest() |
| 33 | | table = db.auth_user |
| 34 | | db(table.email == "myemail@domain.com").update(password = password) |
| 35 | | }}} |