aboutsummaryrefslogtreecommitdiffhomepage
path: root/app/Http/Controllers/Auth
diff options
context:
space:
mode:
authorMarvin Borner2018-07-07 16:13:20 +0200
committerMarvin Borner2018-07-07 16:13:20 +0200
commit84e758a59cea20508bad93a129acbad5d4474c5d (patch)
tree5e73aa7aa903e4e68ef40c681004bdc3bd979ae0 /app/Http/Controllers/Auth
parent82fa40442ad56f7de3cb6984bfb187e429476c76 (diff)
Added public/private key generation & insertion
Diffstat (limited to 'app/Http/Controllers/Auth')
-rw-r--r--app/Http/Controllers/Auth/LoginController.php10
-rw-r--r--app/Http/Controllers/Auth/RegisterController.php2
2 files changed, 9 insertions, 3 deletions
diff --git a/app/Http/Controllers/Auth/LoginController.php b/app/Http/Controllers/Auth/LoginController.php
index 191b2b6..87f66d5 100644
--- a/app/Http/Controllers/Auth/LoginController.php
+++ b/app/Http/Controllers/Auth/LoginController.php
@@ -4,6 +4,7 @@ namespace App\Http\Controllers\Auth;
use App\Http\Controllers\Controller;
use Illuminate\Foundation\Auth\AuthenticatesUsers;
+use Illuminate\Http\Request;
class LoginController extends Controller
{
@@ -16,16 +17,21 @@ class LoginController extends Controller
| redirecting them to your home screen. The controller uses a trait
| to conveniently provide its functionality to your applications.
|
- */
+ */
use AuthenticatesUsers;
+ protected function authenticated(Request $request, $user)
+ {
+ return redirect('/keys/cookie/public');
+ }
+
/**
* Where to redirect users after login.
*
* @var string
*/
- protected $redirectTo = '/';
+ protected $redirectTo = '/keys/cookie/public';
/**
* Create a new controller instance.
diff --git a/app/Http/Controllers/Auth/RegisterController.php b/app/Http/Controllers/Auth/RegisterController.php
index be65e85..fb7a4c1 100644
--- a/app/Http/Controllers/Auth/RegisterController.php
+++ b/app/Http/Controllers/Auth/RegisterController.php
@@ -28,7 +28,7 @@ class RegisterController extends Controller
*
* @var string
*/
- protected $redirectTo = '/';
+ protected $redirectTo = '/keys/cookie/public';
/**
* Create a new controller instance.