From 63cc1cc0fe05d0be25b2c22e2e6bb8ab64f63c92 Mon Sep 17 00:00:00 2001 From: Tobe O Date: Fri, 24 Feb 2017 07:29:31 -0500 Subject: [PATCH] Update auth.dart --- lib/src/routes/controllers/auth.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/routes/controllers/auth.dart b/lib/src/routes/controllers/auth.dart index eae7e24..e656b84 100644 --- a/lib/src/routes/controllers/auth.dart +++ b/lib/src/routes/controllers/auth.dart @@ -13,7 +13,7 @@ class AuthController extends Controller { /// Attempt to log a user in verifier(UserService Users) { return (String username, String password) async { - List users = await Users.index({'username': username}); + List users = await Users.index({'query': {'username': username}}); if (users.isNotEmpty) { var hash = hashPassword(password);