Also give block code. [skip ci]

This commit is contained in:
James Cole
2015-07-25 07:03:35 +02:00
parent df23863443
commit 0e77574c26

View File

@@ -45,8 +45,9 @@ class CronController extends Controller
$user = User::where('email', $address)->where('blocked', 0)->first(); $user = User::where('email', $address)->where('blocked', 0)->first();
if (!is_null($user)) { if (!is_null($user)) {
echo 'Found a user: ' . $address . ', who is now blocked.' . "\n"; echo 'Found a user: ' . $address . ', who is now blocked.' . "\n";
$user->blocked = 1; $user->blocked = 1;
$user->password = 'bounced'; $user->blocked_code = 'bounced';
$user->password = 'bounced';
$user->save(); $user->save();
} else { } else {
echo 'Found no user: ' . $address . ', did nothing.' . "\n"; echo 'Found no user: ' . $address . ', did nothing.' . "\n";