about summary refs log tree commit diff
path: root/public/emoji/1f3e5.svg
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2017-09-27 23:42:49 +0200
committerGitHub <noreply@github.com>2017-09-27 23:42:49 +0200
commitdb3ed498b08d1ff3b1ca16d326a51abef28b9184 (patch)
treea3ce2dd83e876d0f6a791fe710b05513be44344b /public/emoji/1f3e5.svg
parent901fc48aaec8c6c5f1ae3c210c701abce3c03c7c (diff)
When OAuth password verification fails, return 401 instead of redirect (#5111)
Call to warden.authenticate! in resource_owner_from_credentials would
make the request redirect to sign-in path, which is a bad response for
apps. Now bad credentials just return nil, which leads to HTTP 401
from Doorkeeper. Also, accounts with enabled 2FA cannot be logged into
this way.
Diffstat (limited to 'public/emoji/1f3e5.svg')
0 files changed, 0 insertions, 0 deletions