mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 01:08:56 +00:00
20 lines
536 B
PHP
20 lines
536 B
PHP
<?php
|
|
|
|
use App\Models\User;
|
|
use Blacklight\ColorCLI;
|
|
use Jrean\UserVerification\Facades\UserVerification;
|
|
|
|
require_once dirname(__DIR__, 2).DIRECTORY_SEPARATOR.'bootstrap/autoload.php';
|
|
|
|
if (isset($argv[1]) && is_numeric($argv[1])) {
|
|
$user = User::find($argv[1]);
|
|
UserVerification::generate($user);
|
|
|
|
UserVerification::send($user, 'User email verification required');
|
|
|
|
ColorCLI::doEcho(ColorCLI::notice('Email has been sent'));
|
|
|
|
} else {
|
|
ColorCLI::doEcho(ColorCLI::info('You need to provide user id as argument'));
|
|
}
|