1.0.2
This commit is contained in:
parent
9aab0cec4f
commit
fc450e7d26
4 changed files with 4 additions and 2 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.
|
||||
|
|
|
@ -16,6 +16,7 @@ AngelAuthCallback confirmPopupAuthentication({String eventName: 'token'}) {
|
|||
<script>
|
||||
var ev = new CustomEvent('$eventName', { detail: '$jwt' });
|
||||
window.opener.dispatchEvent(ev);
|
||||
window.close();
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
|
|
|
@ -61,6 +61,7 @@ class LocalAuthStrategy extends AuthStrategy {
|
|||
}
|
||||
|
||||
if (verificationResult == null) {
|
||||
await req.parse();
|
||||
if (_validateString(req.body[usernameField]) &&
|
||||
_validateString(req.body[passwordField])) {
|
||||
verificationResult =
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
name: angel_auth
|
||||
description: A complete authentication plugin for Angel.
|
||||
version: 1.0.1
|
||||
version: 1.0.2
|
||||
author: Tobe O <thosakwe@gmail.com>
|
||||
homepage: https://github.com/angel-dart/angel_auth
|
||||
environment:
|
||||
|
|
Loading…
Reference in a new issue