Browse Source

fix the admin password reset query

tags/8.7.0.41497
Pierre 3 years ago
parent
commit
2669c3416b
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      server/sonar-docs/src/pages/instance-administration/security.md

+ 1
- 1
server/sonar-docs/src/pages/instance-administration/security.md View File

@@ -94,7 +94,7 @@ When installing SonarQube, a default user with Administer System permission is c
## Reinstating Admin Access
If you changed and then lost the `admin` password, you can reset it using the following query:
```
update users set crypted_password = '$2a$12$uCkkXmhW5ThVK8mpBvnXOOJRLd64LJeHTeCkSuB3lfaR2N0AYBaSi', salt=null, hash_method='BCRYPT', reset_password=true where login = 'admin'
update users set crypted_password = '$2a$12$uCkkXmhW5ThVK8mpBvnXOOJRLd64LJeHTeCkSuB3lfaR2N0AYBaSi', salt=null, hash_method='BCRYPT', reset_password='true' where login = 'admin'
```
If you've deleted `admin` and subsequently locked out the other users with global administrative permissions, you'll need to re-grant `admin` to a user with the following query:
```

Loading…
Cancel
Save