Clean up session code

This commit is contained in:
James Cole
2017-02-17 20:14:22 +01:00
parent 5d0cdc4ffa
commit 65a899bf25
11 changed files with 155 additions and 135 deletions

View File

@@ -86,8 +86,8 @@ class TwoFactorController extends Controller
*/
public function postIndex(TokenFormRequest $request)
{
Session::put('twofactor-authenticated', true);
Session::put('twofactor-authenticated-date', new Carbon);
Session::put('twoFactorAuthenticated', true);
Session::put('twoFactorAuthenticatedDate', new Carbon);
return redirect(route('home'));
}