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

Devise Confirmable behavior when user clicks "confirmation" link more than once

I'm using Devise confirmable. I'm having an issue whereby if the user clicks on the confirmation link more than once (i.e. if the user forgot they already confirmed or whatever) they get a nasty error: NoMethodError at /confirmation undefined…
chhhris
  • 355
  • 1
  • 4
  • 16
2
votes
3 answers

devise confirmation token is invalid

I added a new migration to a table in my app and I migrate. Since it had errors, I dropped and migrated it. When I signed up for a user and tried to confirm it using email(devise,confirmable) it just won't confirm. It says invalid confirmation…
2
votes
0 answers

Devise: Not updating reset_password_token or reset_password_sent_at

I have a Rails app where you sign in with your email address (not a username). For whatever reason, the Forgot Your Password action is not updating either the reset_password_token or the reset_password_sent_at timestamp, and that leads to a "Reset…
JennyDanger
  • 616
  • 1
  • 7
  • 16
2
votes
3 answers

how to avoid devise_invitable from sending a confirmation email?

from the docs i think it should to not send a confirmation email, but it is doing it. Here's my setup for the invitable action: class Users::InvitationsController < Devise::InvitationsController def multiple_create if…
2
votes
2 answers

how to change mail link in devise from localhost to herokuapp?

I have rails app and i have hosted in heroku. when the user is created devise sends a confirmation to the mail where clicking on the link will cofirm the user account. The problem is the link in the mail points to localhost instead of herokuapp.com,…
logesh
  • 2,572
  • 4
  • 33
  • 60
2
votes
1 answer

Rails Devise prevent login immediately after Signup without using Confirmable

Use Case: Admin should be able to create user, and it should not attempt to login. Public User can crate account and after signup he should be redirected to sign-in page rather signing him in immediately. Can somebody help me with this ? Thanks :)
Syed
  • 15,657
  • 13
  • 120
  • 154
2
votes
1 answer

Devise confirmation email is being sent when I don't want it to

So here's the tricky thing. I do want an email to be sent when the user tries to change or update his email address on the site. However, I do not want an email to be send when the user first registers. This is really tough to pull off though…
Shaan
  • 863
  • 2
  • 12
  • 25
1
vote
2 answers

Devise: Authentication after Registration without Confirmable

Use case: User fills out a form to add a product and register at once. When the user has submitted the combined form, the app authenticates the user and is logged in (assume validations passed) without the need to confirm or login. I've removed the…
1
vote
1 answer

How to fix '535-5.7.8 Username and Password not accepted. Learn more at' error in Devise mail confirmation?

I'm a beginner programmer Rails. I'll start with a problem: I'm using Devise to work with users, and I tried to enable mail confirmation. It doesn't work, unfortunately. If possible, please help! My error: Net::SMTPAuthenticationError in…
NoTProgger
  • 27
  • 3
1
vote
0 answers

valid_password? function does not increment failed_attempts attr

Using Devise 4.8.1 and Rails 7.0.3, I had done the steps from this wiki How To: Add :lockable to Users before and I did a custom password verification that would lock the user access after 5 failed attempts. Previously, the valid_password? function…
1
vote
0 answers

Devise not showing signed_up_but_unconfirmed flash message after sign up

I am working on application that uses devise confirmable. Everything is working fine but whenever I sign up a user, after succesfull creation of user, instead of devise showing signed_up_but_unconfirmed flash message (A message with a confirmation…
1
vote
1 answer

DateTime Math 2 Hours Or Greater Since confirmation_sent_at Rails Devise

Time and date math always seems to get the best of me. I want to write a check to verify it's been 2 hours or more since we sent the original devise confirmation email. I've tried different variations trying to use DateTime and time etc and I cannot…
Doobie
  • 57
  • 2
  • 9
1
vote
1 answer

Devise not confirming email on update

I am using devise for authentication. I am overwriting devise token generator so that I can use 6 digit code and also overwriting it so that I can support mobile number confirmation. If a user register with email and OTP is send via email.…
JIGME
  • 23
  • 4
1
vote
0 answers

Shrine attachment blocks devise confirmation email sending

I'm using Shrine gem to allows user upload their document in devise registration form. There is a strange issue as below: If no file is attached to registration form, confirmation email is sent successfully. If user attached any file(cv image)…
Tiktac
  • 966
  • 1
  • 12
  • 32
1
vote
1 answer

Confirm Rails Devise user with checkbox

While administering users, I'd like the administrator to be able to confirm a user's account using a checkbox to trigger the user's devise user.confirm method. I initially thought I'd be able to use attr_accessor to setup a variable called…
Lloydo
  • 303
  • 1
  • 8