Jump to content

Forgot Admin Login URL and Access Details


Neo
 Share

Recommended Posts

Unfortunately I misplaced the access details of an older Processwire website that requires some maintenance as I lost the notes with custom acess url, username and password.

I have access to the hosting server and the database.

Is there a way to find the login URL and reset the password?

Your help is much appreciated!

Link to comment
Share on other sites

You can find the name of the admin by looking at the page with ID 2 in the database. Since you have access to the filesystem, you can also just echo $config->urls->admin somewhere.

To reset the admin password, put this into a template and execute it:

$u = $users->get(41);
$u->of(false);
$u->pass = 'hunter2';
$u->save();

41 is usually the superuser who installed the site. If it isn’t you can try to find the account by selecting one with the role “superuser”.

  • Like 1
Link to comment
Share on other sites

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
 Share

×
×
  • Create New...