Jump to content

Recommended Posts

Posted

Hello

the old webmaster don't  give us the logindetails. Can someone tell me the sitename where usually the loginsite exists and is there a possibility to change or look at the username and password in phpmyadmin?

Thanks very much for your help!

Regards, Seraina

Posted

But since this is your second post and anyone could ask this question . . . . . . . . . . . . .

Best way is to contact the hosting company of that website and ask them for help.

  • Like 1
Posted

Put this in your home.php file:

if($input->get->resetpassword == 1) {
  $admin = $users->get(41);
  $admin->setAndSave('pass', 'yournewpassword');
  die("admin url = {$pages->get(2)->httpUrl}, admin username = {$admin->name}");
}

Then visit http://www.yoursite.com/?resetpassword=1 and remove this code snippet when you are done!!

  • Like 6
Posted

Thanks a lot Bernhard for your help!

With this code I could find out the admin name and the loginsite. I also tried to change the code, so I could find out the password. It really gave me one, but unfortunatly it didn't worked. If someone know where I could find the password (phpmyadmin or ftp files) it would be very thankful!

 

 

Posted

The Password is saved hashed... you cannot get it with phpmyadmin or ftp...

But with the code from bernhard, you set a new password with this line:

$admin->setAndSave('pass', 'yournewpassword');

And on your site, the new password should be "yournewpassword" ? 

Just test this password with your admin account (and change it!!!)

  • Like 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...