From: Pierre Date: Mon, 8 Feb 2021 16:18:48 +0000 (+0100) Subject: fix the admin password reset query X-Git-Tag: 8.7.0.41497~46 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=2669c3416be312cb6e2673dc4fa7bdd44d19665b;p=sonarqube.git fix the admin password reset query --- diff --git a/server/sonar-docs/src/pages/instance-administration/security.md b/server/sonar-docs/src/pages/instance-administration/security.md index 24e5cba9e60..c7acc9cc0e3 100644 --- a/server/sonar-docs/src/pages/instance-administration/security.md +++ b/server/sonar-docs/src/pages/instance-administration/security.md @@ -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: ```