Questions tagged [devise-confirmable]

Devise's Confirmable module

Its used for confirming the email id mentioned by user to signup. It will email the confirmation token to the registered email id and user can confirm by clicking on the provided link to confirm his/her account.

251 questions
44
votes
3 answers

Devise "Confirmation token is invalid" when user signs up

Using Rails 4 and Devise 3.1.0 on my web app. I wrote a Cucumber test to test user sign up; it fails when the "confirm my account" link is clicked from the e-mail. Scenario: User signs up with valid data …
David Elner
  • 5,091
  • 6
  • 33
  • 49
39
votes
5 answers

Avoid sign-in after confirmation link click using devise gem?

I am using devise gem, after clicking on the confirmation link, I want to directly sign-in. At present it is asking to sign-in again. Recently I have added the following in the devise initialize file: config.allow_insecure_token_lookup =…
25
votes
1 answer

devise reconfirmable

I would like to use the devise option :reconfirmable in my user model, so whenever a user changes his email, he needs to confirm it with a link sent by email. The big problem is, that the email gets never sent ... My setup is with devise 2.1.2…
user1311103
  • 711
  • 1
  • 6
  • 9
20
votes
6 answers

Disable Devise confirmable mails

Recently I added the confirmable module to my User class. I already have a quite nice mailing system (Sidekiq, Sendgrid...) in my app, so I created my own "confirm account" mail. The problem now is to disable Devise from sending its default email.…
Gawyn
  • 1,156
  • 1
  • 10
  • 21
19
votes
3 answers

Devise with Confirmable - Redirect user to a custom page when users tries to sign in with an unconfirmed email

With the Confirmable module enabled, Devise will not allow an unconfirmed user to sign in after a predefined period of time has elapsed. Instead the user is redirected back to the sign in page with the flash message "You have to confirm your account…
Tobias Cohen
  • 19,893
  • 7
  • 54
  • 51
16
votes
3 answers

Why won't Devise allow unconfirmed users to login even when allow_unconfirmed_access_for is set?

We have an existing user base and are adding email confirmation. Confirmation is optional but will allow additional features. Users are not required to confirm. I've added the confirmable module and ran migrations. Confirmation works as…
ericvg
  • 3,907
  • 1
  • 30
  • 35
16
votes
8 answers

Where do I confirm user created with FactoryGirl?

Using rails, devise, rspec & factorygirl: Trying to create some tests for my site. I'm using the confirmable model for devise so when I create a user using FactoryGirl, the user isn't confirmed. This is my factories.rb: FactoryGirl.define do …
Kevin K
  • 2,191
  • 2
  • 28
  • 41
15
votes
2 answers

Automatically sign in after confirm with devise

I am using devise confirmable. I have some custom things that i need to override from devise's confirm! method, so in my user model i have the following method that overrides it: def confirm! super gb =…
Philip7899
  • 4,599
  • 4
  • 55
  • 114
11
votes
2 answers

Allow unconfirmed users to access certain pages which require authentication

I use the Rails Stack with devise warden confirmable Now I have a certain requirement related to email confirmation and access provision to unverified users. Let's say there are 3 categories of pages: case 1 - requires no authentication. case 2 -…
10
votes
1 answer

Remove password confirmation; devise

I am using devise for authentication in my Rails 3.2.6 app. I had password confirmation first but now I want to remove it. How to go about that?
Bhushan Lodha
  • 6,824
  • 7
  • 62
  • 100
9
votes
1 answer

Devise - how to get user when redirecting with a custom Devise::FailureApp

I let users log in initially without confirming their email address - but after 7 days, if they haven't confirmed - I block access until they confirm their address. (Note - this is achieved by setting config.allow_unconfirmed_access_for = 7.days in…
Confused Vorlon
  • 9,659
  • 3
  • 46
  • 49
8
votes
5 answers

Add dynamic value in devise email subject

Ok I have seen many discussions about customizing devise email subject but none seems to solve what I want. Currently my confirmation email subject reads "Confirm your Qitch.com account". I want to customize this email subject and add a dynamic…
Joseph N.
  • 2,437
  • 1
  • 25
  • 31
7
votes
2 answers

Skip email confirmation when creating a new user using Devise

I have a user registration page and will send the information to couple of admin users that one new user registered in the site. Now, I created the seed data with list of users (200+). So, It'll send the 200+ email to the respective admin users.…
Mr. Black
  • 11,692
  • 13
  • 60
  • 85
7
votes
1 answer

Rails: Devise: How can I edit user information?

I have a Rails app set up using Devise, with a Registration controller. What's working so far: New user registration Login Logout Home About Confirmation Password reset Not working is edit, as in I can't figure out the URL/REST call I should be…
EastsideDev
  • 6,257
  • 9
  • 59
  • 116
6
votes
1 answer

How do I add instance variables to Devise email templates?

I am trying to edit the confirmation_instructions.html.erb file to address the new user by first name instead of email. Current the beginning of the file reads... Hi, <%= @email %>, How do I add an instance variable @first_name to the…
vanilla_skies
  • 415
  • 5
  • 15
1
2 3
16 17