From 68bf35657271f9d314a343db06e04d4a1659a8c6 Mon Sep 17 00:00:00 2001 From: Tobe O Date: Mon, 31 Dec 2018 10:00:17 -0500 Subject: [PATCH] 2.0.4 --- CHANGELOG.md | 3 +++ lib/src/plugin.dart | 2 +- pubspec.yaml | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 359c5b68..b0e5b0e7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +# 2.0.4 +* `successRedirect` was previously explicitly returning a `200`; remove this and allow the default `302`. + # 2.0.3 * Updates for streaming parse of request bodies. diff --git a/lib/src/plugin.dart b/lib/src/plugin.dart index 352cf82d..6f9de24f 100644 --- a/lib/src/plugin.dart +++ b/lib/src/plugin.dart @@ -306,7 +306,7 @@ class AngelAuth { } if (options?.successRedirect?.isNotEmpty == true) { - res.redirect(options.successRedirect, code: 200); + res.redirect(options.successRedirect); return false; } else if (options?.canRespondWithJson != false && req.accepts('application/json')) { diff --git a/pubspec.yaml b/pubspec.yaml index cd82e309..adb5dd6c 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: angel_auth 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 homepage: https://github.com/angel-dart/angel_auth environment: