From 0e77574c2638a184d819f4c714ac7306c173e42a Mon Sep 17 00:00:00 2001 From: James Cole Date: Sat, 25 Jul 2015 07:03:35 +0200 Subject: [PATCH] Also give block code. [skip ci] --- app/Http/Controllers/CronController.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/CronController.php b/app/Http/Controllers/CronController.php index 29d143d233..9dc8456702 100644 --- a/app/Http/Controllers/CronController.php +++ b/app/Http/Controllers/CronController.php @@ -45,8 +45,9 @@ class CronController extends Controller $user = User::where('email', $address)->where('blocked', 0)->first(); if (!is_null($user)) { echo 'Found a user: ' . $address . ', who is now blocked.' . "\n"; - $user->blocked = 1; - $user->password = 'bounced'; + $user->blocked = 1; + $user->blocked_code = 'bounced'; + $user->password = 'bounced'; $user->save(); } else { echo 'Found no user: ' . $address . ', did nothing.' . "\n";