Browse Source

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

Daniel Supernault 4 months ago
parent
commit
0844094b99

+ 2 - 2
app/Http/Controllers/AppRegisterController.php

@@ -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) {

+ 1 - 0
resources/views/auth/iar-resend.blade.php

@@ -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'))}}"

+ 1 - 1
resources/views/emails/iar/email_verify.blade.php

@@ -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">