Update auth.dart

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

View file

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