Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Edit message for user creation #1015

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion inginious/frontend/pages/register.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def register_user(self, data):
# Check input format
if re.match(r"^[-_|~0-9A-Z]{4,}$", data["username"], re.IGNORECASE) is None:
error = True
msg = _("Invalid username format.")
msg = _("The username must be at least 4 characters long and is limited to this range of characters: A-Z, a-z, 0-9, - _ ~")
elif email is None:
error = True
msg = _("Invalid email format.")
Expand Down
2 changes: 1 addition & 1 deletion inginious/frontend/templates/register.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ <h2>{{ _("Register in INGInious") }}</h2>
<form method="post" class="form-horizontal">
<div class="row">
<div class="col-sm-12">
<label class="control-label">{{ _("Username (min. 4 alphanumerical characters) :") }} </label>
<label class="control-label">{{ _("Username (min. 4 characters from A-Z, a-z, 0-9, - _ ~) :") }} </label>
<input name="username" type="text" class="form-control">
</div>
<div class="col-sm-12">
Expand Down
Loading