Add new REST endpoint:

- /v2/token/password?username={user}

TSHOCKPLUGINS-1 #resolve #time 5m #comment Deprecating old token create syntax, new endpoint added as a replacement.
This commit is contained in:
Lucas Nicodemus 2012-01-03 15:18:05 -07:00
parent e1d11ca96a
commit 5d61a56fcd
2 changed files with 34 additions and 2 deletions

View file

@ -116,8 +116,8 @@ namespace Rests
if (obj == null)
throw new NullReferenceException("obj");
//if (OnRestRequestCall(e))
// return;
if (OnRestRequestCall(e))
return;
var str = JsonConvert.SerializeObject(obj, Formatting.Indented);
e.Response.Connection.Type = ConnectionType.Close;