Skip to content

Instantly share code, notes, and snippets.

View lazysod's full-sized avatar

Barry Smith lazysod

View GitHub Profile
@lazysod
lazysod / pwreset.php
Created November 3, 2014 11:07
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();
?>