mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
Adding method param error to /api/login and /api/signup.
This commit is contained in:
parent
4568eaa549
commit
d46f509acb
1 changed files with 2 additions and 2 deletions
|
@ -26,7 +26,7 @@ def login(request):
|
|||
logging.user(request, "~FG~BB~SKAPI Login~FW")
|
||||
code = 1
|
||||
else:
|
||||
errors = dict(method="Invalid method. Use POST.")
|
||||
errors = dict(method="Invalid method. Use POST. You used %s" % request.method)
|
||||
|
||||
return dict(code=code, errors=errors)
|
||||
|
||||
|
@ -45,7 +45,7 @@ def signup(request):
|
|||
logging.user(request, "~FG~SB~BBAPI NEW SIGNUP~FW")
|
||||
code = 1
|
||||
else:
|
||||
errors = dict(method="Invalid method. Use POST.")
|
||||
errors = dict(method="Invalid method. Use POST. You used %s" % request.method)
|
||||
|
||||
|
||||
return dict(code=code, errors=errors)
|
||||
|
|
Loading…
Add table
Reference in a new issue