Update auth.dart
This commit is contained in:
parent
9e8de27c7a
commit
63cc1cc0fe
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ class AuthController extends Controller {
|
|||
/// Attempt to log a user in
|
||||
verifier(UserService Users) {
|
||||
return (String username, String password) async {
|
||||
List<User> users = await Users.index({'username': username});
|
||||
List<User> users = await Users.index({'query': {'username': username}});
|
||||
|
||||
if (users.isNotEmpty) {
|
||||
var hash = hashPassword(password);
|
||||
|
|
Loading…
Reference in a new issue