Update auth.dart
This commit is contained in:
parent
acb641d324
commit
7b90bc22a7
1 changed files with 2 additions and 4 deletions
|
@ -37,12 +37,10 @@ class AuthController extends Controller {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Expose('/login', method: 'POST')
|
@Expose('/login', method: 'POST')
|
||||||
login(RequestContext req) async {
|
login(RequestContext req) async => auth.authenticate('local');
|
||||||
// Include log-in logic here...
|
|
||||||
}
|
|
||||||
|
|
||||||
@Expose('/register', method: 'POST')
|
@Expose('/register', method: 'POST')
|
||||||
register(RequestContext req, UserService Users) async {
|
register(RequestContext req, UserService userService) async {
|
||||||
// And your registration logic...
|
// And your registration logic...
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue