Matchu
83f80facda
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.
10 lines
No EOL
317 B
Ruby
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 |