add menu api

This commit is contained in:
Yan
2017-08-17 18:55:13 +06:30
parent f2829fab0f
commit 29b3f94573
26 changed files with 84 additions and 168 deletions

View File

@@ -14,10 +14,9 @@ module TokenVerification
end
def authenticate_token
authenticate_with_http_token do |token, options|
authenticate_with_http_token do |token, options|
#@current_user = User.find_by(api_key: token)
Rails.logger.debug "token - " + token.to_s
@user = Employee.authenticate_by_token(token)
if @user
return true