IEEE.org     |     IEEE Xplore Digital Library     |     IEEE Standards     |     IEEE Spectrum     |     More Sites

Verified Commit d04fecfa authored by Emi Simpson's avatar Emi Simpson
Browse files

Add password requirements

parent c754a8ea
......@@ -68,8 +68,14 @@ def run_signup() -> None:
):
return
problem_found = False
if '@' in username:
flash("Username's can't contain @s", "error-signup-username")
problem_found = True
if len(password) < 16:
flash("Please use at least 16 characters in your password", "error-signup-password")
problem_found = True
if problem_found:
return
db = get_database()
......
......@@ -17,6 +17,11 @@ input {
margin-top: 4px;
margin-bottom: -4px;
}
.small {
color: #666;
font-size: 0.7em;
line-height: 2.5em;
}
.input-field {
margin-bottom: 30px;
}
......@@ -45,6 +50,7 @@ input {
<label>Password</label>
<input name="password" type=password {{ utils.highlight_if_error("signup", "password") }}>
{{ utils.show_field_error("signup", "password") }}
<span class="small">The only requirement is that passwords must be at least 16 characters</span>
</div>
<div class="input-field">
<label>First/Display Name</label>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment