Skip to content

Commit

Permalink
Fix validation
Browse files Browse the repository at this point in the history
  • Loading branch information
andriannus committed Aug 29, 2018
1 parent c4539e5 commit 8ee3ecb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions application/views/sites/register.php
Original file line number Diff line number Diff line change
Expand Up @@ -155,13 +155,13 @@ class="button is-dark is-fullwidth"
},

username: {
presence: {
allowEmpty: false
},
format: {
pattern: '[a-zA-Z0-9]+',
message: 'Username must be the alphabetic or numeric or both'
},
presence: {
allowEmpty: false
},
length: {
minimum: 8,
maximum: 20
Expand Down

0 comments on commit 8ee3ecb

Please sign in to comment.