0

Try installing administrate(thoughtbot) and Madmin(GoRails). But in both cases when I change the password of a user in /admin or /madmin and try to login again with the new password, I get the following error. raise Errors::InvalidHash.new("invalid hash")

I check that user.rb has :database_authenticatable

class User < ApplicationRecord
  # Include default devise modules. Others available are:
  # :confirmable, :lockable, :timeoutable, :trackable and :omniauthable
  devise :database_authenticatable, :registerable,
         :recoverable, :rememberable, :validatable
end

Is just standar rails new 7 + devise, bcrypt is commented

# Use Active Model has_secure_password [https://guides.rubyonrails.org/active_model_basics.html#securepassword]
# gem "bcrypt", "~> 3.1.7"

The users can edit his own password but i need to close the new signups and only create new users manually in /admin

Poluxland
  • 53
  • 7

0 Answers0