X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;ds=sidebyside;f=app%2FHttp%2FControllers%2FAuth%2FConfirmablePasswordController.php;fp=app%2FHttp%2FControllers%2FAuth%2FConfirmablePasswordController.php;h=117501004b3c1aa105d67591c68cf9b79c0f10de;hb=f642f1eda2a68ad5e09b71ccdae1499bc9d31e4f;hp=0000000000000000000000000000000000000000;hpb=78ee3a45427e1227013773b2a1c19fc1ee0efc12;p=alttp.git diff --git a/app/Http/Controllers/Auth/ConfirmablePasswordController.php b/app/Http/Controllers/Auth/ConfirmablePasswordController.php new file mode 100644 index 0000000..1175010 --- /dev/null +++ b/app/Http/Controllers/Auth/ConfirmablePasswordController.php @@ -0,0 +1,44 @@ +validate([ + 'email' => $request->user()->email, + 'password' => $request->password, + ])) { + throw ValidationException::withMessages([ + 'password' => __('auth.password'), + ]); + } + + $request->session()->put('auth.password_confirmed_at', time()); + + return redirect()->intended(RouteServiceProvider::HOME); + } +}