Created
November 3, 2014 11:07
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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