Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3691272
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T04:07:44+00:00 2026-05-19T04:07:44+00:00

By default, devise uses an email address for sign up and sign in. But

  • 0

By default, devise uses an email address for sign up and sign in.

But I want that the email address should be allowed to be changed by the user.

If I allow the user to edit the email address, and the user specifies an “incorrect” (i.e. a typo by mistake) email address and then user signs out, and the user also forgets what the typo’ed email was, now the user account is inaccessible by the user!

How to best work around this? (except for creating a separate, unchangeable username field that will always allow user to login)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T04:07:44+00:00Added an answer on May 19, 2026 at 4:07 am

    You can force the user to confirm his account again if he changes his email.

    Once, you updated the password of the concerned user, you need to un-confirm the user, and then re-send the confirmation email.

    To unconfirm the user :

    user = User.find(1)
    if user.confirmed?
      user.confirmed_at = nil
      user.save(:validate => false)
    end
    

    To resend the email confirmation :

    user = User.find(1)
    user.send_confirmation_instructions
    

    Hope this help !

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an application that uses multiple user models, each with its own devise
I have a rails app that uses Devise for user auth. In localhost:3000 my
Default JVM uses maximum 1.5 GB RAM/JVM Java application. But my Server have 8
By default Devise creates a routing for a sign-in as '/sign_in'. How would I
I currently have an app that uses regular Devise authentication for logging in and
I have an application, that uses the MultiSelectionModel, and it works great, but I
Every example I see uses the default Membership Provider with the userNamePasswordValidationMode, but can
I know that Devise can do this but I am not a big fan
The default strongly-typed Edit page in ASP.NET MVC 3 generally exposes all fields for
The default behaviour in browsers is to select the next form element. I want

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.