]> BookStack Code Mirror - bookstack/blobdiff - app/Http/Middleware/Authenticate.php
Decode HTML entities
[bookstack] / app / Http / Middleware / Authenticate.php
index 9a8affa8842fbe7e0a944462f5ee24770d752a79..df8c44d351cc92784bc8adaec1f642ea0c1719a0 100644 (file)
@@ -44,6 +44,10 @@ class Authenticate
             ], 401);
         }
 
+        if (session()->get('sent-email-confirmation') === true) {
+            return redirect('/register/confirm');
+        }
+
         return redirect('/register/confirm/awaiting');
     }
 }