No checked mode
This commit is contained in:
parent
1914b11661
commit
bdfcb0d457
2 changed files with 2 additions and 2 deletions
|
@ -18,7 +18,7 @@ class AuthController extends Controller {
|
|||
/// Attempt to log a user in
|
||||
LocalAuthVerifier localVerifier(Service userService) {
|
||||
return (String username, String password) async {
|
||||
List<User> users = await userService.index({
|
||||
Iterable<User> users = await userService.index({
|
||||
'query': {'username': username}
|
||||
});
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@ configureServer(Db db) {
|
|||
app.use('/api/users',
|
||||
new TypedService<User>(new MongoService(db.collection('users'))));
|
||||
|
||||
HookedService service = app.service('api/users');
|
||||
var service = app.service('api/users') as HookedService;
|
||||
|
||||
// Prevent clients from doing anything to the `users` service,
|
||||
// apart from reading a single user's data.
|
||||
|
|
Loading…
Reference in a new issue