mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 23:45:10 +00:00
Also give block code. [skip ci]
This commit is contained in:
@@ -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";
|
||||||
|
Reference in New Issue
Block a user