Update App Register to expire codes after 4 hours instead of 60 minutes

pull/5815/head
Daniel Supernault 6 months ago
parent 1278e2211b
commit 0844094b99
No known key found for this signature in database
GPG Key ID: 23740873EE6F76A1

@ -111,7 +111,7 @@ class AppRegisterController extends Controller
$exists = AppRegister::whereEmail($email)
->whereVerifyCode($code)
->where('created_at', '>', now()->subMinutes(60))
->where('created_at', '>', now()->subHours(4))
->exists();
return response()->json([
@ -219,7 +219,7 @@ class AppRegisterController extends Controller
$exists = AppRegister::whereEmail($email)
->whereVerifyCode($code)
->where('created_at', '>', now()->subMinutes(60))
->where('created_at', '>', now()->subHours(4))
->exists();
if (! $exists) {

@ -23,6 +23,7 @@
id="email"
name="email"
required
placeholder="Enter your email address here"
autocomplete="email"
@if(request()->filled('email'))
value="{{rawurldecode(request()->input('email'))}}"

@ -20,7 +20,7 @@
</div>
<p class="ottext">
This code will expire in 60 minutes. If you didn't request this verification, please ignore this email.
This code will expire in 4 hours. If you didn't request this verification, please ignore this email.
</p>
<div class="otfooter">

Loading…
Cancel
Save