mirror of
https://github.com/v2board/v2board.git
synced 2024-11-10 17:49:11 +08:00
update: send email verify
This commit is contained in:
parent
757e605921
commit
6f8e395681
@ -36,6 +36,11 @@ class CommController extends Controller
|
|||||||
if (Cache::get(CacheKey::get('LAST_SEND_EMAIL_VERIFY_TIMESTAMP', $email))) {
|
if (Cache::get(CacheKey::get('LAST_SEND_EMAIL_VERIFY_TIMESTAMP', $email))) {
|
||||||
abort(500, __('Email verification code has been sent, please request again later'));
|
abort(500, __('Email verification code has been sent, please request again later'));
|
||||||
}
|
}
|
||||||
|
if (!User::where('email', $email)->first()) {
|
||||||
|
return [
|
||||||
|
'data' => true
|
||||||
|
];
|
||||||
|
}
|
||||||
$code = rand(100000, 999999);
|
$code = rand(100000, 999999);
|
||||||
$subject = config('v2board.app_name', 'V2Board') . __('Email verification code');
|
$subject = config('v2board.app_name', 'V2Board') . __('Email verification code');
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user