This commit is contained in:
thosakwe 2017-03-02 16:30:27 -05:00
parent a773990f61
commit 9aab0cec4f
3 changed files with 5 additions and 4 deletions

View file

@ -1,6 +1,6 @@
# angel_auth
[![version 1.0.0](https://img.shields.io/badge/version-1.0.0-brightgreen.svg)](https://pub.dartlang.org/packages/angel_auth)
[![version 1.0.1](https://img.shields.io/badge/version-1.0.1-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

@ -1,6 +1,6 @@
name: angel_auth
description: A complete authentication plugin for Angel.
version: 1.0.0
version: 1.0.1
author: Tobe O <thosakwe@gmail.com>
homepage: https://github.com/angel-dart/angel_auth
environment:

View file

@ -1,10 +1,11 @@
import 'dart:io';
import 'package:angel_auth/angel_auth.dart';
import 'package:angel_framework/angel_framework.dart';
import 'package:angel_framework/common.dart';
import 'package:http/http.dart' as http;
import 'package:test/test.dart';
class User extends MemoryModel {
class User extends Model {
String username, password;
User({this.username, this.password});
@ -19,7 +20,7 @@ main() {
setUp(() async {
app = new Angel();
app.use('/users', new MemoryService<User>());
app.use('/users', new TypedService<User>(new MapService()));
await app
.service('users')