Skip to content

Commit

Permalink
Remove username check while public api is down
Browse files Browse the repository at this point in the history
  • Loading branch information
Sheikah45 authored and Brutus5000 committed Jul 7, 2021
1 parent 77198b8 commit 70d1cb9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion templates/mixins/form/account.pug
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,14 @@ mixin username
.form-group.has-feedback
label Username:
.input-group
input(type='text', name='username', required='required', value=formData['username'], 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").form-control
// TODO: Add back 'data-remote="/account/checkUsername", data-remote-error="Username taken"' to input check once API is fixed
input(type='text', name='username', required='required', value=formData['username'], 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').form-control
span(aria-hidden='true').glyphicon.form-control-feedback
.help-block
| Must be between 3 and 16 characters <br>
| Only letters, digits, minus and underscore are allowed <br>
| First character must be a letter
| Error will occur if username is already taken
.help-block.with-errors

mixin usernameOrEmail
Expand Down

0 comments on commit 70d1cb9

Please sign in to comment.