GithubHelp home page GithubHelp logo

Password Reset not working about confide HOT 16 CLOSED

zizaco avatar zizaco commented on August 16, 2024
Password Reset not working

from confide.

Comments (16)

andrew13 avatar andrew13 commented on August 16, 2024

Thanks!

from confide.

cie101 avatar cie101 commented on August 16, 2024

brandtam did this commit fix it for you?

from confide.

brandtam avatar brandtam commented on August 16, 2024

Hmmm Actually it did not fix my issue. It seems that the controller is still not able to access $token. It looks like it's not able to access the token being passed in the url that is being generated in the forgot password email. Here are some details.
screen shot 2013-05-28 at 10 37 58 pm
screen shot 2013-05-28 at 10 38 19 pm
screen shot 2013-05-28 at 10 38 31 pm

from confide.

brandtam avatar brandtam commented on August 16, 2024

And I did run composer update beforehand :-D

from confide.

cie101 avatar cie101 commented on August 16, 2024

Brandtam re run php artisan confide:routes he added two routes to the restful controller that fixes it. But I no long get this error now I just get invalid password everytime I try to change the password

from confide.

brandtam avatar brandtam commented on August 16, 2024

Thanks cie101 that did fix the routes. After I deleted the user controller and recreated it using -restful...

However, now I'm stuck where you are with the password not being accepted. I looked in the confide controller and I can confirm that the $input array is making it through with the token, the password and the password confirmation fields. But it looks like the method is just not doing the right thing with the passwords.

I think a new issue should be opened at this point.

from confide.

andrew13 avatar andrew13 commented on August 16, 2024

Password reset still doesn't work. Next step

from confide.

Zizaco avatar Zizaco commented on August 16, 2024

38569f1 does fixes this, I believe.

@brandtam, Let me know if you still getting any issue.

from confide.

cie101 avatar cie101 commented on August 16, 2024

In regards the the routes that were added it breaks the the confirm password link. Once you create a user and get the email saying click link to confirm the user get the screenshot that brandtam posted above. I removed those routes from my routes.php and in the UserController.php in the postReset() method i created a $token variable and told it to also get the token input. Then i went ahead and in the line where it says $return Redirect::to('user/reset') i changed that to Redirect::to('user/reset/' . $token) and that fixed the issue of the confirmation link not working.

from confide.

Zizaco avatar Zizaco commented on August 16, 2024

@cie101, are you using the password reset link that was sent to the user email?

The password reset link should look like the following: http://localhost:3000/user/reset_password/334f1f52c23f425aa1040f60aa0d3e77

The last parameter is the $token. You should strictly provide a $token to the password reset route. You cannot access it like http://localhost:3000/user/reset_password

Are you sure that the link in the email was absent of the token?

from confide.

cie101 avatar cie101 commented on August 16, 2024

@Zizaco the link shows the token, but when it was erroring before that it gave the screenshot before it would redirect you to /user/reset, but it would not include the token. Lets say that a password tried to get reset now and it failed validation it would get a redirect to /user/reset without the token. The only way it passed the token is by using the routes that @andrew13 added or by including it in the controller like i did.

The only issue i have with the routes that were added to the routes.php is that when you create a user and click on the generated link for whatever reason it errors out with the same error as the screenshot above. Thats when i added it in the controller and it is all working now. I don't know if maybe someone else can reproduce the issue with the routes that @andrew13 added to the routes.php to confirm.

from confide.

Zizaco avatar Zizaco commented on August 16, 2024

Does this #87 solves your problem? There was an error in RESTful routes, are you using a generated RESTful controller?

from confide.

cie101 avatar cie101 commented on August 16, 2024

@Zizaco 87 solved the original issue i am now able to reset the password and all is good, but when you click on the link once you get the confirm email it just takes you to the same error thats in the screenshot above. Let me try to reproduce the issue again. I am going to remove the token variable that i put in the controller and put back the routes that @andrew13 added. I am using RESTful controller. and the Restful routes.

from confide.

andrew13 avatar andrew13 commented on August 16, 2024

I think what is happening is if the reset token fails. The redirect is incorrect. No token is passed on the redirect. From controller.blade.php, function do_reset_password or postReset

        else
        {
            $error_msg = Lang::get('confide::confide.alerts.wrong_password_reset');
            @if (! $restful)
            return Redirect::action('{{ $name }}@reset_password', array('token'=>$input['token']))
            @else
            return Redirect::to('user/reset/'.$input['token'])
            @endif
                ->withInput()
                ->with( 'error', $error_msg );
        }

from confide.

Zizaco avatar Zizaco commented on August 16, 2024

@andrew13 Thats right. Thanks

f565ef3 should fix this

from confide.

cie101 avatar cie101 commented on August 16, 2024

@Zizaco Did you remove the route generation that @andrew13 added?

from confide.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.