impress/app/models/auth_user.rb
Matchu 83f80facda Can log into OpenNeo ID accounts directly!
A lot of rough edges here (e.g. no styles on the flash messages), but it's working and that's good!!

I tested this by temporarily switching to the production database and logging in as matchu!

Still missing a lot of big features too, like registration, password resets, settings page, etc.
2023-10-23 19:05:07 -07:00

10 lines
No EOL
317 B
Ruby

class AuthUser < AuthRecord
self.table_name = 'users'
devise :database_authenticatable, :encryptable
# devise :database_authenticatable, :lockable, :registerable, :recoverable,
# :trackable, :validatable
validates :name, presence: true, uniqueness: {case_sensitive: false},
length: {maximum: 20}
end