mirror of
https://github.com/hrfee/jellyfin-accounts.git
synced 2025-12-22 10:11:13 +00:00
pw requirements now loaded with jinja over js
Originally i loaded the requirements through calling the web api in javascript, but decided to switch it to jinja as i only recently found out its capable of stuff more complicated than replacing strings.
This commit is contained in:
@@ -112,14 +112,6 @@ else:
|
||||
validator = PasswordValidator(0, 0, 0, 0, 0)
|
||||
|
||||
|
||||
@app.route('/getRequirements', methods=['GET', 'POST'])
|
||||
def getRequirements():
|
||||
data = request.get_json()
|
||||
log.debug('Password Requirements requested')
|
||||
if checkInvite(data['code']):
|
||||
return jsonify(validator.getCriteria())
|
||||
|
||||
|
||||
@app.route('/newUser', methods=['GET', 'POST'])
|
||||
def newUser():
|
||||
data = request.get_json()
|
||||
|
||||
Reference in New Issue
Block a user