Don't require username/password authentication for GET /token/:token route

This commit is contained in:
Scott Schneider 2015-11-04 13:19:15 -08:00
parent e0356968df
commit d74c9ff512
3 changed files with 2 additions and 17 deletions

View file

@ -201,10 +201,6 @@ module Vmpooler
result = { 'ok' => false }
if Vmpooler::API.settings.config[:auth]
status 401
need_auth!
token = backend.hgetall('vmpooler__token__' + params[:token])
if not token.nil? and not token.empty?
@ -221,8 +217,6 @@ module Vmpooler
end
result = { 'ok' => true, params[:token] => token }
else
status 404
end
end