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:
parent
e1d11ca96a
commit
5d61a56fcd
2 changed files with 34 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue