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
|
/// Attempt to log a user in
|
||||||
verifier(UserService Users) {
|
verifier(UserService Users) {
|
||||||
return (String username, String password) async {
|
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) {
|
if (users.isNotEmpty) {
|
||||||
var hash = hashPassword(password);
|
var hash = hashPassword(password);
|
||||||
|
|
Loading…
Reference in a new issue