Ask A Question

Notifications

You’re not receiving notifications from this thread.

Ask password after confirmation (devise)

Brijesh Wawdhane asked in General

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

Reply

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.

Reply
Join the discussion
Create an account Log in

Want to stay up-to-date with Ruby on Rails?

Join 87,563+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.