Update: Fields empty
This commit is contained in:
parent
539311990b
commit
e3d563d58b
1 changed files with 1 additions and 1 deletions
|
|
@ -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():
|
||||||
try:
|
|
||||||
post_json = request.json
|
post_json = request.json
|
||||||
|
try:
|
||||||
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 != '':
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue