Complete LDAP API functions and simplify

This commit is contained in:
2020-02-04 23:16:07 -07:00
parent 036623d473
commit e250af14f7
2 changed files with 45 additions and 164 deletions
+2 -2
View File
@@ -15,13 +15,13 @@ def check_auth():
def index():
return '<i>SEE YOU SPACE SAMURAI...</i>'
@app.route('/check-username-exists', methods=['GET'])
@app.route('/find-user', methods=['POST'])
def check_username_exists():
check_auth()
username = request.form['username']
return ldap_functions.check_username_exists(username)
return ldap_functions.find_user(username)
@app.route('/create-user', methods=['POST'])
def create_user():