Commit 6ab2284b by liyijie

Fix auth session controller bug

parent 103eb270
......@@ -22,7 +22,7 @@ module RailsApiAuthentication
def session_params
auth_key = self.class.klass.auth_key
auth_password = self.class.klass.auth_password
oauth_enable = self.class.oauth_enable
oauth_enable = self.class.klass.oauth_enable
if oauth_enable
params.require(self.class.klass_sym).permit(auth_key, auth_password, :oauth_type, :oauth_id)
else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment