File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
src/Authentication/Actions Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ public function verify(IncomingRequest $request)
92
92
93
93
// Token mismatch? Let them try again...
94
94
if (empty ($ token ) || $ token !== $ identity ->secret ) {
95
- $ _SESSION [ 'error ' ] = lang ('Auth.invalid2FAToken ' );
95
+ session ()-> setFlashdata ( 'error ' , lang ('Auth.invalid2FAToken ' ) );
96
96
97
97
return view (setting ('Auth.views ' )['action_email_2fa_verify ' ]);
98
98
}
Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ public function verify(IncomingRequest $request)
71
71
72
72
// No match - let them try again.
73
73
if ($ identity ->secret !== $ token ) {
74
- $ _SESSION [ 'error ' ] = lang ('Auth.invalidActivateToken ' );
74
+ session ()-> setFlashdata ( 'error ' , lang ('Auth.invalidActivateToken ' ) );
75
75
76
76
return view (setting ('Auth.views ' )['action_email_activate_show ' ]);
77
77
}
You can’t perform that action at this time.
0 commit comments