Concrete5 admin password reset
To reset admin password in concrete5 you have to enter new md5 password to users table (user we want to change the value for) in mysql database, but with a slight modification.
We first need to generate the md5 hash using the **password_salt value for our concrete5 installation.
5, Take the resulting MD5 hash and set it for your user in mysql like below or use phpmyadmin to update database.
To reset admin password in concrete5 you have to enter new md5 password to users table (user we want to change the value for) in mysql database, but with a slight modification.
We first need to generate the md5 hash using the **password_salt value for our concrete5 installation.
**salt value which will be found in config/site.php.>
Steps:
1, Get your password_salt Value from
config/site.php file
2 Create a new php file (Eg:test.php)
in your webdirectory.
3. Add the following code in the file
<?php echo md5('password'.':'.'salt'); ?>
Here replace 'password' with the password of your wish and 'salt' with
salt value which will be found in config/site.php.
4. Access/run the file in the browser and copy the value displayed in
the browser.
update User set uPassword = 'the_resulting_hash'
where uName = 'username';
**You can even easier use the md5 MySQL function
directly like:
update Users set uPassword = md5('password:salt') where uName = 'username';
Here replace 'password' with the password of your wish and 'salt' with salt value which will be found in
config/site.php.

No comments:
Post a Comment