CHange auth header names

pull/189/head
Rick Carlino 2015-06-13 16:22:20 -05:00
parent d6ce043a56
commit f522f7791c
1 changed files with 2 additions and 1 deletions

View File

@ -21,7 +21,8 @@ private
def authenticate_user!
return true if current_user
auth = Auth::Create.run(request.headers.to_h)
auth = Auth::Create.run(bot_token: request.headers["HTTP_BOT_TOKEN"],
bot_uuid: request.headers["HTTP_BOT_UUID"])
if auth.success?
@current_user = auth.result
else