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
3
votes
2 answers

Check if user confirmed during login, using devise

I have a React FE + Rails BE app and I'm using devise for authentication. I'm trying to generate a custom error message for users who try to log in after their confirmation period has expired. Currently, they are being blocked from logging in but it…
anonn023432
  • 2,940
  • 6
  • 31
  • 63
3
votes
2 answers

Rails 4 ActionMailer not sending emails in development mode

First, let me specify that I am aware that ActionMailer does NOT send emails by default in development mode. Also, I took a look at similar questions, and none of them was relevant to my situation. So, here we go: I am following this Site Point…
3
votes
1 answer

Automatically set password for user - Devise

Following this tutorial, I setup a simple registration system with devise, where a user enters their email address, they are sent a confirmation email, they click on it, it takes them to a form where they have to enter their password and complete…
Katie H
  • 2,283
  • 5
  • 30
  • 51
3
votes
2 answers

active_for_authentication? not working

I am using active_for_authentication? to allow only active users to login through devise. But it's not working. My controller: class DashboardUsersController < ApplicationController def active_for_authentication? super &&…
Raj
  • 950
  • 1
  • 9
  • 33
3
votes
1 answer

ArgumentError (method 'sort!': given 0, expected 1) when sending a confirmation mail via Devise

I'm developing a Rails 4 app with Devise. I wanted to start using confirmable, but whenever it's sending out a confirmation email, it throws said ArgumentError. Stacktrace: ArgumentError (method 'sort!': given 0, expected…
3
votes
1 answer

LDAP: Not authorized because not authenticated on setting up ldap on devise_ldap_authenticatable

I followed 'https://github.com/cschiewek/devise_ldap_authenticatable' The error I got on Rails console LDAP: LDAP search yielded 0 matches LDAP: Not authorized because not authenticated. Completed 401 Unauthorized in 19ms I tried to run the…
user3675188
  • 7,271
  • 11
  • 40
  • 76
3
votes
2 answers

Send devise confirmation email to new email instead of old email

By default devise sends confirmation email to old email if an email is changed. In my case where a user is allowed to create an account via Twitter login, his initial email is blank since Twitter API does not give user's email. Later if user wants…
furiabhavesh
  • 416
  • 3
  • 17
3
votes
2 answers

Email verification for registration in Spree Commerce

I want my users to verify their email addresses while logging in. By default Spree Commerce doesn't provide email verification. How can I make sure that users' email address is verified before he is able to make changes in the account?
nefarianblack
  • 802
  • 8
  • 16
3
votes
2 answers

Devise Confirmation invalid on first send

I have a Rails 4 app with Devise 3.2.2 using :confirmable, and am running into an issue with it sending invalid confirmation tokens, but only the first time. After you resend the confirmation token, the link works. The relevant routes: devise_for…
3
votes
1 answer

Devise, skip confirmation until user tries to do something meaningful

I want to let new users signup and browse my site without having to confirm their email addresses, until they try to do anything meaningful like create a new project, upload a video or leave a comment. Does Devise have any hooks for doing this sort…
stephenmurdoch
  • 34,024
  • 29
  • 114
  • 189
3
votes
1 answer

How redirect 'Confirmation token invalid' on Devise

I configured my Rails application with devise :confirmable and after registration the user receives an email with the confirmation link. When the user click in this link a second time the token is invalid which is the expected behavior in my…
3
votes
2 answers

Devise /users/confirmation route

Cant Confirm email, with devise. route.rb devise_for :users, :controllers => { :sessions => "users/sessions" ,:omniauth_callbacks => "users/omniauth_callbacks" } do post "users/confirmation", :to => "devise/confirmations#create" …
2
votes
0 answers

Associated records lost from User Model, Rspec/Devise/Capybara test issue

I'm working on a rails 3.2 app that uses rspec, devise and capybara under ruby 1.9.3 I've having a lot of problems for test for logging when using capybara, I mean when using the js: true metada on a test. first, in a test, logging through capybara…
fespinozacast
  • 2,484
  • 4
  • 23
  • 38
2
votes
3 answers

Send devise confirmation email manually later

I have added devise :confirmable to my model and created a before_create to skip the confirmation. before_create :skip_confirmation def skip_confirmation self.skip_confirmation! end I have a mailer named store_mailer.rb along with appropriate…
Theopap
  • 715
  • 1
  • 10
  • 33
2
votes
0 answers

At what point does Devise move unconfirmed_email to email

I am using Devise with :confirmable option enabled. I am also using config.reconfirmable = true and thus adding unconfirmed_email column to my user model. From here: unconfirmed_email - An email address copied from the email attr. After …
ivanibash
  • 1,461
  • 2
  • 14
  • 37
1 2
3
16 17