mirror of
https://github.com/fluent/fluentd-ui.git
synced 2025-08-12 17:27:09 +02:00
11 lines
218 B
Ruby
11 lines
218 B
Ruby
class User < ActiveRecord::Base
|
|
has_secure_password
|
|
|
|
attr_accessor :current_password
|
|
|
|
has_many :login_tokens
|
|
|
|
validates :name, uniqueness: true, presence: true
|
|
validates :password, length: { minimum: 8 }
|
|
end
|