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