From 7b90bc22a74bc10adbf87741813c95a69e19d70e Mon Sep 17 00:00:00 2001 From: Tobe O Date: Sat, 18 Feb 2017 22:23:43 -0500 Subject: [PATCH] Update auth.dart --- lib/src/routes/controllers/auth.dart | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/src/routes/controllers/auth.dart b/lib/src/routes/controllers/auth.dart index 292590b3..eae7e24f 100644 --- a/lib/src/routes/controllers/auth.dart +++ b/lib/src/routes/controllers/auth.dart @@ -37,12 +37,10 @@ class AuthController extends Controller { } @Expose('/login', method: 'POST') - login(RequestContext req) async { - // Include log-in logic here... - } + login(RequestContext req) async => auth.authenticate('local'); @Expose('/register', method: 'POST') - register(RequestContext req, UserService Users) async { + register(RequestContext req, UserService userService) async { // And your registration logic... } }