Commit ce5052fea2c56d690a49b516b72950c2e846d561

Authored by Andrew Buss
1 parent b0a28dde77
Exists in master

fixed '''intentional''' bug lolol

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

flashcards/api.py View file @ ce5052f
... ... @@ -84,7 +84,7 @@
84 84 password = request.data['password']
85 85 user = authenticate(email=email, password=password)
86 86  
87   - if user is not None:
  87 + if user is None:
88 88 raise ValidationError('Invalid email or password')
89 89 if not user.is_active:
90 90 raise ValidationError('Account is disabled')