This commit is contained in:
thosakwe 2017-03-28 20:31:20 -04:00
parent 9aab0cec4f
commit fc450e7d26
4 changed files with 4 additions and 2 deletions

View file

@ -1,6 +1,6 @@
# 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)
A complete authentication plugin for Angel. Inspired by Passport.

View file

@ -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>

View file

@ -61,6 +61,7 @@ class LocalAuthStrategy extends AuthStrategy {
}
if (verificationResult == null) {
await req.parse();
if (_validateString(req.body[usernameField]) &&
_validateString(req.body[passwordField])) {
verificationResult =

View file

@ -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: