+1
This commit is contained in:
parent
cd4537733e
commit
b00329f632
3 changed files with 9 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
|||
# angel_auth
|
||||
|
||||
[](https://pub.dartlang.org/packages/angel_auth)
|
||||
[](https://pub.dartlang.org/packages/angel_auth)
|
||||

|
||||
|
||||
A complete authentication plugin for Angel. Inspired by Passport.
|
||||
|
|
|
@ -271,7 +271,13 @@ class AngelAuth extends AngelPlugin {
|
|||
|
||||
return true;
|
||||
} else {
|
||||
await authenticationFailure(req, res);
|
||||
// Check if not redirect
|
||||
if (res.statusCode == 301 ||
|
||||
res.statusCode == 302 ||
|
||||
res.headers.containsKey(HttpHeaders.LOCATION))
|
||||
return false;
|
||||
else
|
||||
await authenticationFailure(req, res);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
name: angel_auth
|
||||
description: A complete authentication plugin for Angel.
|
||||
version: 1.0.4
|
||||
version: 1.0.4+1
|
||||
author: Tobe O <thosakwe@gmail.com>
|
||||
homepage: https://github.com/angel-dart/angel_auth
|
||||
environment:
|
||||
|
|
Loading…
Reference in a new issue