Update Notecard.cs
This commit is contained in:
parent
8dfe9ce978
commit
6ab89ec779
1 changed files with 1 additions and 1 deletions
|
|
@ -105,7 +105,7 @@ namespace BetterSecondBot.HttpService
|
||||||
[Route(HttpVerbs.Post, "/NotecardDirectSend/{avatar}/{notecardname}/{token}")]
|
[Route(HttpVerbs.Post, "/NotecardDirectSend/{avatar}/{notecardname}/{token}")]
|
||||||
public object NotecardDirectSend(string avatar, [FormField] string content, string notecardname, string token)
|
public object NotecardDirectSend(string avatar, [FormField] string content, string notecardname, string token)
|
||||||
{
|
{
|
||||||
if (tokens.Allow(token, "notecard", "NotecardSend", handleGetClientIP()) == false)
|
if (tokens.Allow(token, "notecard", "NotecardDirectSend", handleGetClientIP()) == false)
|
||||||
{
|
{
|
||||||
return Failure("Token not accepted", "NotecardDirectSend", new[] { avatar, content, notecardname });
|
return Failure("Token not accepted", "NotecardDirectSend", new[] { avatar, content, notecardname });
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue