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 4057940
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T15:01:02+00:00 2026-05-20T15:01:02+00:00

So when I create an account on my RoR app locally, and then push

  • 0

So when I create an account on my RoR app locally, and then push it to heroku with heroku db:push all is well. However, when I make my account an admin with User.find(5).toggle!(:admin) locally in the console and then push the db to heroku, I can no longer log into my account. I get an incorrect pw and email combo. Why is this?

  • 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-20T15:01:02+00:00Added an answer on May 20, 2026 at 3:01 pm

    I had this same problem with a tutorial.

    When you update that admin user with toggle, it also updates the password salt based on the logic of the tutorial. As a result, the password you setup correctly won’t work. The solution is to check your password salting methods and change your salting logic or post it here.

    You can check to see if this the case yourself by going into the heroku ruby console and recording the user’s salt prior to a toggle and post-toggle. If you have the same problem I had they will be different.

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

Sidebar

Related Questions

Trying to create a user account in a test. But getting a Object reference
In my python program, when I send the user to create a gmail account
How can I create a local user account using .NET 2.0 and c# and
I have a form where a user can create an account. The username column
i'm new with RoR and i'm trying to make a master-datail: User -Lugar(place) My
Square's new card case iOS app has a Create Account feature. Tap it and
I am developing iPhone app that let user login using their facebook account using
I'm creating a walkup create account page for our website. I've always cleared out
I have this authnav='<li class=last><a href=auth/login>login</a></li>'+ '<li><a href=auth/create_account>create account</a></li>'; It works fine in Firefox,
I have something like this: create table account ( id int identity(1,1) primary key,

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.