Update auth.dart
This commit is contained in:
parent
63cc1cc0fe
commit
a0d0ddd690
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({'query': {'username': username}});
|
||||
List<User> users = await Users.index({'query':{'username': username}});
|
||||
|
||||
if (users.isNotEmpty) {
|
||||
var hash = hashPassword(password);
|
||||
|
|
Loading…
Reference in a new issue