This commit is contained in:
Tobe O 2018-12-31 10:00:17 -05:00
parent 8e9c85cb96
commit 68bf356572
3 changed files with 5 additions and 2 deletions

View file

@ -1,3 +1,6 @@
# 2.0.4
* `successRedirect` was previously explicitly returning a `200`; remove this and allow the default `302`.
# 2.0.3 # 2.0.3
* Updates for streaming parse of request bodies. * Updates for streaming parse of request bodies.

View file

@ -306,7 +306,7 @@ class AngelAuth<User> {
} }
if (options?.successRedirect?.isNotEmpty == true) { if (options?.successRedirect?.isNotEmpty == true) {
res.redirect(options.successRedirect, code: 200); res.redirect(options.successRedirect);
return false; return false;
} else if (options?.canRespondWithJson != false && } else if (options?.canRespondWithJson != false &&
req.accepts('application/json')) { req.accepts('application/json')) {

View file

@ -1,6 +1,6 @@
name: angel_auth name: angel_auth
description: A complete authentication plugin for Angel. Includes support for stateless JWT tokens, Basic Auth, and more. description: A complete authentication plugin for Angel. Includes support for stateless JWT tokens, Basic Auth, and more.
version: 2.0.3 version: 2.0.4
author: Tobe O <thosakwe@gmail.com> author: Tobe O <thosakwe@gmail.com>
homepage: https://github.com/angel-dart/angel_auth homepage: https://github.com/angel-dart/angel_auth
environment: environment: