Fix problems Token
This commit is contained in:
@@ -22,6 +22,9 @@ namespace Step
|
||||
protected override bool IsAuthorized(HttpActionContext actionContext)
|
||||
{
|
||||
// Get token from headers
|
||||
if (actionContext.Request.Headers.Authorization == null)
|
||||
return false;
|
||||
|
||||
string token = actionContext.Request.Headers.Authorization.ToString();
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user