add login

This commit is contained in:
bee0005
2016-09-23 12:53:19 +00:00
parent eb8e6a64b4
commit 1b7b26ee06
11 changed files with 36 additions and 12 deletions

View File

@@ -4,3 +4,10 @@ class User < ActiveRecord::Base
devise :database_authenticatable, :registerable,
:recoverable, :rememberable, :trackable, :validatable
end
class User::ParameterSanitizer < Devise::ParameterSanitizer
def initialize(*)
super
permit(:sign_up, keys: [:username, :email])
end
end