mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-13 16:00:13 +00:00
Also give block code. [skip ci]
This commit is contained in:
@@ -46,6 +46,7 @@ class CronController extends Controller
|
|||||||
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->blocked_code = 'bounced';
|
||||||
$user->password = 'bounced';
|
$user->password = 'bounced';
|
||||||
$user->save();
|
$user->save();
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user