Support the ongoing development of Laravel.io →
Configuration Authentication Architecture
Last updated 2 years ago.
0

how about ask the user to enter their username to change password, then send an email to the email with a link to password change screen

0

yes i did this, now the user enter his user name, and i send him the link. the issue now that when i get to the reset password form with the token, i can change password to each username i like and not just the user that i send the reset password with.

instead of email i change the input to username, but still i am facing this last issue. this is the files that i change every input email to username. in this file CanResetPassword i added new method to get the username.

 public function getUserNameForPasswordReset()
    {
        return $this->username;
    }

vendor/laravel/framework/src/Illuminate/Auth/Passwords/CanResetPassword.php vendor/laravel/framework/src/Illuminate/Foundation/Auth/ResetsPasswords.php vendor/laravel/framework/src/Illuminate/Foundation/Auth/SendsPasswordResetEmails.php

Last updated 8 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

maorkavod maorkavod Joined 12 Sep 2016

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.