You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: userfrosting/models/UserFrosting.php
+17-2Lines changed: 17 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -79,9 +79,24 @@ public function setupErrorHandling(){
79
79
return$this->logout(true);
80
80
}
81
81
82
+
if ($einstanceof AccountDisabledException) {
83
+
$this->logout(false);
84
+
// Create a new session to store alerts
85
+
$this->startSession();
86
+
// Seems to be needed to create a new session as per http://stackoverflow.com/questions/19738422/destroying-old-session-making-new-but-php-still-refers-to-old-session
0 commit comments