Update: Fields empty

This commit is contained in:
Yûki VACHOT 2022-01-12 21:05:47 +01:00
parent 539311990b
commit e3d563d58b

View file

@ -10,8 +10,8 @@ bp = Blueprint('myapp', __name__)
# Login # Login
@bp.route('/api/login', methods=['POST']) @bp.route('/api/login', methods=['POST'])
def login(): def login():
post_json = request.json
try: try:
post_json = request.json
post_email = str(post_json['email']) post_email = str(post_json['email'])
post_password = str(post_json['password']) post_password = str(post_json['password'])
if post_email != '' and post_password != '': if post_email != '' and post_password != '':