Update auth.dart

This commit is contained in:
Tobe O 2017-02-24 07:29:31 -05:00 committed by GitHub
parent 9e8de27c7a
commit 63cc1cc0fe

View file

@ -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);