This commit is contained in:
Sebastian Davaris 2020-06-30 10:42:19 +02:00
commit 3cfcd980f4
1 changed files with 10 additions and 1 deletions

View File

@ -211,8 +211,17 @@ class UserController extends Controller
return Response::detect('users.forgot');
}
public function forgot(){
public function forgot(Request $request){
$user = User::query()->where('email', '=', $request->email)->first();
if($user == null){
return redirect()->back();
}
//Send email
//TODO: Implement mail.
return redirect()->route('users.login');
}