gluster-web-interface/app/models/user.rb

14 lines
417 B
Ruby
Raw Normal View History

2016-08-19 09:03:00 +00:00
class User < ActiveRecord::Base
# Include default devise modules. Others available are:
# :confirmable, :lockable, :timeoutable and :omniauthable
devise :database_authenticatable, :registerable,
:recoverable, :rememberable, :trackable, :validatable
end
2016-09-23 12:53:19 +00:00
class User::ParameterSanitizer < Devise::ParameterSanitizer
def initialize(*)
super
permit(:sign_up, keys: [:username, :email])
end
2017-10-22 06:30:44 +00:00
end