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
2
votes
1 answer

Devise and confirmation emails

I am using Devise in my Rails app and am sending out emails for email confirmation, password reset, and password change advisory. I would like to know how I would pass in a different image into each of these emails so that I don't need to pass a…
Alan
  • 459
  • 6
  • 20
2
votes
1 answer

Rails - devise with devise_token_auth not sending confirmation email

I work on project (ruby '2.2.0', rails '4.2.3') which use both standard devise user management (for web page) and devise_token_auth (for API part of the service). Everything works fine unless I include DeviseTokenAuth::Concerns::User in the…
2
votes
1 answer

Devise: How can I send the confirmable email but not require confirmation by while

I wanna send mail to user confirms it, but it's not interesting by now to block users access, although would be amazing to have the control about who confirmed and who did not, and in the future make confirmation required. Added the block below on…
Mauro Dias
  • 1,083
  • 1
  • 11
  • 23
2
votes
3 answers

How to change the reply_to option in devise

I am using rails 4. In my config/initializers/devise.rb file I set the config.mailer_sender = 'noreply@test.com' Which is setting for from and reply_to address at the email. But I want to use different email address for from and reply_to. How can I…
zakaria
  • 426
  • 2
  • 15
2
votes
1 answer

add devise:confirmable to 2 models

Can someone give me an example of how to add devise to 2 different models with existing databases,i have 2 models, customer and vendor.If I just add :confirmable on both models and do the migration rails g migration add_confirmable_to_devise will…
2
votes
2 answers

Ruby on Rails Devise Confirmation Token is nil

I've got a User model (created by $ rails g devise User) and it is set to use confirmable (in the model and migration). When a User is created the confirmation token is not being set (and the confirmation email is not being sent). Here's…
Andrew Hendrie
  • 6,205
  • 4
  • 40
  • 71
2
votes
3 answers

Undefined method confirmed_at when using Devise

I'm getting the following error when trying to use the :confirmable module of Devise: NameError (undefined local variable or method `confirmed_at' for #) My model: class AdminUser < ActiveRecord::Base # Include default…
user5496955
2
votes
3 answers

How to edit error messages in devise

I need to modify the error messages of devise. I want to change the message "is Invalid" to "Es inválido" . The problem is that I have to go to change these messages in the gem. Can I overwrite these messages in the model User Rails…
2
votes
3 answers

Adding User's First Name to Devise Confirmation Email Template

I'm running Rails 4.2.0 with the latest version of Devise. I'm using the confirmable module - so after a user registers they are sent a confirmation email. Here's the view code for that (in Slim... not ERB) p | Hi = @user.first_name | , p…
Andrew Hendrie
  • 6,205
  • 4
  • 40
  • 71
2
votes
1 answer

undefined local variable or method `confirmed_at' for #

I know others asked this question, but the answers didn't solve my problem. I'm getting this error when trying the sign up feature: "undefined local variable or method 'confirmed_at' for #" My migration looks like this: class…
adp
  • 271
  • 1
  • 4
  • 16
2
votes
0 answers

How to change Devise's "from address" with a custom Mailer class?

I have a Rails app that handles two domains. I therefore need to be able to specify as a variable which email address Devise should send confirmation emails from. In config/environments/development.rb I have these…
Cjoerg
  • 1,271
  • 3
  • 21
  • 63
2
votes
1 answer

Do custom action after devise model confirmation

I know once the user has confirmed a Confirmable account in devise, I can change the redirect URL with: def after_confirmation_path_for(resource) view_context.admin_dashboard_url_for(subdomain: resource.tenant.subdomain) end But if I wanted to…
typeoneerror
  • 55,990
  • 32
  • 132
  • 223
2
votes
1 answer

Devise @token not resolving correctly (Devise 3.2.3)

Running a Rails 4 app with Devise 3.2.3 and Devise Confirmable. Devise generates a confirmation_token for a newly created user that is correctly stored in the database, and then sends out a mailer with confirmation instructions. The token sent out…
dcaccavano
  • 71
  • 5
2
votes
0 answers

Rails 4 Devise 3 confirmation token invalid when no password required

I can not successfully confirm my user. Many posts have been made about an invalid token but most of them were due to the changes from Devise 2 to Devise 3. That is not my issue. I over rid my user confirmation…
MicFin
  • 2,431
  • 4
  • 32
  • 59
2
votes
3 answers

Devise: prints confirmation token is invalid if my model has an after_create callback

I'm using Devise 3.2.3 on a Rails 4.0.3 app In my user model I have an after_create: subscribe callback that subscribes a new user to a newsletter. After I introduced this callback every time a new user attempts to confirm their email they get…
Sbbs
  • 1,610
  • 3
  • 22
  • 34