fix auth failed json rendering

This commit is contained in:
r888888888
2015-06-18 17:04:22 -07:00
parent f8b8b6d6f7
commit 0239b0077f

View File

@@ -55,7 +55,7 @@ protected
end
fmt.json do
render :json => {:success => false, :reason => "authentication failed"}, :status => 401
render :json => {:success => false, :reason => "authentication failed"}.to_json, :status => 401
end
end
end