Comments (16)
Thanks!
from confide.
brandtam did this commit fix it for you?
from confide.
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.
from confide.
And I did run composer update beforehand :-D
from confide.
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.
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.
Password reset still doesn't work. Next step
from confide.
38569f1 does fixes this, I believe.
@brandtam, Let me know if you still getting any issue.
from confide.
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.
@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.
@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.
Does this #87 solves your problem? There was an error in RESTful routes, are you using a generated RESTful controller?
from confide.
@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.
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.
@andrew13 Thats right. Thanks
f565ef3 should fix this
from confide.
@Zizaco Did you remove the route generation that @andrew13 added?
from confide.
Related Issues (20)
- Too many assumptions that email implies a unique user - it seldom does in mature systems
- Serialization of 'Closure' is not allowed HOT 6
- Email subject in config HOT 2
- hash method and user data migrate
- How to set my own view for password reset? HOT 1
- Laravel 5 Support? HOT 3
- SMS registration HOT 1
- Deactivate user? HOT 2
- erroneous error: The credentials provided have already been used. Try with different credentials HOT 1
- Getting wrong confirmation code while registering with username and email id containing dot(.)
- composer update for laravel 5 does not work HOT 4
- 5.0.x-dev: Missing file 'tests/Confide/helpers.php' throws Fatal error during `artisan clear-compiled` HOT 1
- When I create file with using '$ php artisan confide:migration', that file's path is wrong.
- Username not accepting "." HOT 1
- Support for Laravel 5.1 HOT 2
- Confide 4.3 is full of bug HOT 1
- Class 'Zizaco\Confide\UserValidator' not found
- Wrong confirmation code
- Warning: Ambiguous class resolution, "ConfideSetupUsersTable"
- laravel 5.1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from confide.