Skip to content

Instantly share code, notes, and snippets.

@lazysod
Created November 3, 2014 11:07
Show Gist options
  • Save lazysod/4f9b41db989cbe05b07b to your computer and use it in GitHub Desktop.
Save lazysod/4f9b41db989cbe05b07b to your computer and use it in GitHub Desktop.
If a user has been locked out then the following code can be used to reset an admin password in #Processwire
<?php
// place this in any part of a page template to reset password
$admin = $users->get('ADMIN_NAME');
$admin->setOutputFormatting(false);
$admin->pass = 'PASSWORD HERE'; // put in your new password
$admin->save();
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment