Commit 5cdc540f authored by Tim Visée's avatar Tim Visée
Browse files

Merge branch '360-fix-error-on-password-reset-request-for-unknown-email-address' into 'master'

Resolve "Fix error on password reset request for unknown email address"

Closes #360

See merge request !192
parents 1c3aafd9 41c22f4a
Pipeline #202099817 passed with stage
in 5 minutes and 10 seconds
......@@ -33,7 +33,7 @@ class PasswordForgetController extends Controller {
$email = Email::where('email', '=', $request->input('email'))->first();
// Send login link if user has no password
if(($user = $email->user) != null) {
if($email != null && ($user = $email->user) != null) {
if(!$user->hasPassword()) {
// Create and send session link
$link = SessionLink::create($user, route('password.change'));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment