From 52fedf6d179974ae57bca1ed489617a219cc3e9a Mon Sep 17 00:00:00 2001 From: Tobe O Date: Sat, 25 Feb 2017 09:08:47 -0500 Subject: [PATCH] Update auth.dart --- lib/src/routes/controllers/auth.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/routes/controllers/auth.dart b/lib/src/routes/controllers/auth.dart index 6a306d7..3d3da91 100644 --- a/lib/src/routes/controllers/auth.dart +++ b/lib/src/routes/controllers/auth.dart @@ -11,9 +11,9 @@ class AuthController extends Controller { serializer(User user) async => user.id; /// Attempt to log a user in - verifier(UserService Users) { + verifier(UserService userService) { return (String username, String password) async { - List users = await Users.index({'query':{'username': username}}); + List users = await userService.index({'query':{'username': username}}); if (users.isNotEmpty) { var hash = hashPassword(password);