mirror of
https://github.com/aljazceru/CTFd.git
synced 2026-01-03 22:24:23 +01:00
Strip spaces on registration and have reset password use email address instead of names (#1218)
* Usernames are now properly stripped before being used in registration checks * Reset password function now uses email addresses instead of user names for tokens * Prevent MLC users from resetting their password
This commit is contained in:
@@ -105,7 +105,7 @@ def new():
|
||||
|
||||
return render_template("teams/new_team.html", infos=infos, errors=errors)
|
||||
elif request.method == "POST":
|
||||
teamname = request.form.get("name")
|
||||
teamname = request.form.get("name", "").strip()
|
||||
passphrase = request.form.get("password", "").strip()
|
||||
errors = get_errors()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user