Changes between Version 18 and Version 19 of UserGuidelines/Admin


Ignore:
Timestamp:
07/27/12 21:34:01 (13 years ago)
Author:
Fran Boon
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • UserGuidelines/Admin

    v18 v19  
    2222Find user & remove the 'Pending' flag
    2323
     24=== Reset password from CLI ===
     25If you have CLI access to an instance, but don't know the password for an admin login then you can reset a password:
     26{{{
     27w2p
     28import hmac
     29import hashlib
     30alg = hashlib.sha512
     31hmac_key = auth.settings.hmac_key
     32password = hmac.new(hmac_key, "newpassword", alg).hexdigest()
     33table = db.auth_user
     34db(table.email == "myemail@domain.com").update(password = password)
     35}}}
     36
    2437== See Also ==
    2538* SysAdmin