from models.Users import Users
from mongoengine import *


def loginController(body):
    user = Users.objects(email=body['email'], password=body['password'])
    if user:
        return user[0].generate_token()
    else:
        return False

70f636bfad1a9e9efb2ffefc3cd62a879ae40305
<mask token>

<mask token>


def loginController(body):
    user = Users.objects(email=body['email'], password=body['password'])
    if user:
        return user[0].generate_token()
    else:
        return False

from models.Users import Users
from mongoengine import *


def loginController(body):
    user = Users.objects(email=body['email'], password=body['password'])
    if user:
        return user[0].generate_token()
    else:
        return False
