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

Develop 484 #513

Merged
merged 2 commits into from
Dec 2, 2023
Merged
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
18 changes: 9 additions & 9 deletions src/backend/templates/mixins/form/account.pug
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
mixin email
p Enter your Email
p Enter your Email
.formStart
input(type='email', name='email', required='required', placeholder='[email protected]', value=formData['email'])
span(aria-hidden='true')
span(aria-hidden='true')



mixin username
p Enter your username
.formStart
//value=formData['username']
input(type='text', name='username', required='required', data-minlength='3', maxlength='16', pattern='[A-Za-z]{1}[A-Za-z0-9_-]{2,15}$', data-minlength-error='The username is too short - must be at least 3 characters', data-error='Please check username requirements', data-remote="/account/checkUsername", data-remote-error="Username taken", placeholder='Eco_Player7-', value=formData['username'])
input(type='text', name='username', required='required', data-minlength='3', maxlength='16', pattern='^[A-Za-z]{1}[A-Za-z0-9_\\-]{2,15}$', data-minlength-error='The username is too short - must be at least 3 characters', data-error='Please check username requirements', data-remote="/account/checkUsername", data-remote-error="Username taken", placeholder='Eco_Player7-', value=formData['username'])
span(aria-hidden='true')
.formHelp
.formHelp
ul Your username must:
li Start with a letter

li Be between 3 and 16 characters

li Only use letters and digits ( - and _ are allowed).


Expand Down