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... } }