Eugen Rochko db3ed498b0 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.
2017-09-27 23:42:49 +02:00
..
2016-02-20 22:53:20 +01:00
2016-08-17 17:58:00 +02:00
2017-04-22 19:48:55 +02:00
2017-08-08 21:52:15 +02:00
2017-04-11 01:11:41 +02:00
2017-04-05 19:29:30 +02:00
2017-09-14 15:12:43 +02:00
2016-12-06 17:19:26 +01:00
2017-01-26 19:46:52 +01:00
2017-01-22 23:07:31 +01:00
2016-08-17 17:58:00 +02:00