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
|
# angel_auth
|
||||||
|
|
||||||
[![version 1.0.1](https://img.shields.io/badge/version-1.0.1-brightgreen.svg)](https://pub.dartlang.org/packages/angel_auth)
|
[![version 1.0.2](https://img.shields.io/badge/version-1.0.2-brightgreen.svg)](https://pub.dartlang.org/packages/angel_auth)
|
||||||
![build status](https://travis-ci.org/angel-dart/auth.svg?branch=master)
|
![build status](https://travis-ci.org/angel-dart/auth.svg?branch=master)
|
||||||
|
|
||||||
A complete authentication plugin for Angel. Inspired by Passport.
|
A complete authentication plugin for Angel. Inspired by Passport.
|
||||||
|
|
|
@ -16,6 +16,7 @@ AngelAuthCallback confirmPopupAuthentication({String eventName: 'token'}) {
|
||||||
<script>
|
<script>
|
||||||
var ev = new CustomEvent('$eventName', { detail: '$jwt' });
|
var ev = new CustomEvent('$eventName', { detail: '$jwt' });
|
||||||
window.opener.dispatchEvent(ev);
|
window.opener.dispatchEvent(ev);
|
||||||
|
window.close();
|
||||||
</script>
|
</script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
|
@ -61,6 +61,7 @@ class LocalAuthStrategy extends AuthStrategy {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (verificationResult == null) {
|
if (verificationResult == null) {
|
||||||
|
await req.parse();
|
||||||
if (_validateString(req.body[usernameField]) &&
|
if (_validateString(req.body[usernameField]) &&
|
||||||
_validateString(req.body[passwordField])) {
|
_validateString(req.body[passwordField])) {
|
||||||
verificationResult =
|
verificationResult =
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
name: angel_auth
|
name: angel_auth
|
||||||
description: A complete authentication plugin for Angel.
|
description: A complete authentication plugin for Angel.
|
||||||
version: 1.0.1
|
version: 1.0.2
|
||||||
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:
|
||||||
|
|
Loading…
Reference in a new issue