lazysod
11/3/2014 - 11:07 AM

If a user has been locked out then the following code can be used to reset an admin password in #Processwire

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();
?>