From 9794d05264d88676b50b4ccd11f3eeaefd9bfb8f Mon Sep 17 00:00:00 2001 From: Tobe O Date: Sat, 25 Feb 2017 09:09:22 -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 3d3da91..81645c1 100644 --- a/lib/src/routes/controllers/auth.dart +++ b/lib/src/routes/controllers/auth.dart @@ -11,7 +11,7 @@ class AuthController extends Controller { serializer(User user) async => user.id; /// Attempt to log a user in - verifier(UserService userService) { + LocalAuthVerifier localVerifier(UserService userService) { return (String username, String password) async { List users = await userService.index({'query':{'username': username}}); @@ -30,7 +30,7 @@ class AuthController extends Controller { ..serializer = serializer ..deserializer = deserializer ..strategies.add( - new LocalAuthStrategy(verifier(app.container.make(UserService)))); + new LocalAuthStrategy(localVerifier(app.container.make(UserService)))); await super.call(app); await app.configure(auth);