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);