Resetting the Default Administrator Password
  • 08 Feb 2021
  • 1 Minute To Read
  • Print
  • Share
  • Dark
    Light

Resetting the Default Administrator Password

  • Print
  • Share
  • Dark
    Light

The password for the admin@securecircle.com root account can be reset to the default of Password#1 via the database.

[user@myserver server]$ docker-compose exec securecircle-db mysql -uroot -p
Enter password: password
mysql> use System;
Database changed
mysql> select * from Users where email='admin@securecircle.com'\G
*************************** 1. row ***************************
            id: 14
        itemId: 3b0cf55f-a503-11e8-86df-29cc588a5269
          name: Root Admin
         email: admin@securecircle.com
      settings: NULL
      almighty: 1
        active: 1
         _pass: NULL
passwordMethod: 1
 passwordHash: 4c0367cbd227923392bccf63a987c89c6a560668dbfb7fe3
  passwordSalt: 2d24e0ba3556cf900e066b8527871fbb362dd5dace73f2cb
passwordCycles: 1000
   groupItemId: eed2d25e-441c-4794-a78e-22e41c411972
    _circleRef: NULL
       created: 1535576686
      modified: 1544227321
1 row in set (0.00 sec)

mysql> update Users set passwordHash='4c0367cbd227923392bccf63a987c89c6a560668dbfb7fe3', passwordSalt='2d24e0ba3556cf900e066b8527871fbb362dd5dace73f2cb' where email='admin@securecircle.com';
Query OK, 0 rows affected (0.00 sec)
Rows matched: 1  Changed: 0  Warnings: 0
Was This Article Helpful?