Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[SOLVED] Access denied at log in - How to reset password
06-12-2015, 07:24 AM,
#4
RE: Access denied at log in - How to reset password
Hi, it now uses the much more secure PHP function password_hash() function. I haven't tried it, but try setting up a file called PasswordReset.php containing the following:

<?php
include('config.php');
$db = mysqli_connect($Host, $DBUser, $DBPassword, 'DatabaseName', $DBPort);
$Result = mysqli_query($db, "UPDATE www_users SET password='".password_hash('weberp',PASSWORD_DEFAULT)."' WHERE userid='admin'");
?>

Replacing DatabaseName with the real name of your database. Run this from the browser and it should just change the password to weberp.

Remove this script once it has run - for obvious reasons Smile

Tim
Reply


Messages In This Thread
RE: Access denied at log in - How to reset password - by TimSchofield - 06-12-2015, 07:24 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)