Ask password after confirmation (devise)
Hi, I am fairly new to rails and i'm trying to figure out how to get a user signed up first and later after they go to account confirmation link mailed to them ask for password.
I read about it on https://github.com/heartcombo/devise/wiki/How-To:-Override-confirmations-so-users-can-pick-their-own-passwords-as-part-of-confirmation-activation
Can anyone help?
My code is hosted on https://github.com/brijesh-wawdhane/stride/tree/team
Hey Brijesh,
as far as I can tell from your source code, you'll likely need to adjust your do_confirm
-method within your confirmations_controller.rb
.
Take a look at line 65 where its says "sign_in_and_redirect". Therein should lie your solution, once you changed this, to not sign the user in automatically and redirect him to your sign_in-view instead.