This commit is contained in:
z9hang 2014-12-23 15:38:45 +08:00
parent 4518fe4355
commit 50a242a56b
1 changed files with 0 additions and 1 deletions

View File

@ -15,7 +15,6 @@ module Mobile
raise('Unauthorized. Invalid or expired token.') unless current_user
end
def current_user
token = ApiKey.where(access_token: params[:token]).first
if token && !token.expired?