aboutsummaryrefslogtreecommitdiffstats
path: root/public/js/register.coffee
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2016-10-22 16:50:28 -0700
committerAdam Soltys <[email protected]>2016-10-22 16:50:28 -0700
commit183d0ed2aae5849146903190ba106ccd1b7f1a81 (patch)
tree12d3f7668714912b97738aab859e217085db0898 /public/js/register.coffee
parenta4adc19e1e8cbe1e91afc5d81a5c844a8e92cb18 (diff)
downloadcoinos-server-183d0ed2aae5849146903190ba106ccd1b7f1a81.tar.gz
coinos-server-183d0ed2aae5849146903190ba106ccd1b7f1a81.zip
Remove username and password requirements
Diffstat (limited to 'public/js/register.coffee')
-rw-r--r--public/js/register.coffee11
1 files changed, 2 insertions, 9 deletions
diff --git a/public/js/register.coffee b/public/js/register.coffee
index b012713f..b69e1088 100644
--- a/public/js/register.coffee
+++ b/public/js/register.coffee
@@ -2,27 +2,20 @@ g = this
$(->
$('#username').focus()
- $('#password').pwstrength(showVerdicts: false)
-
$('#username').blur(->
$(this).parent().next('.alert').remove()
- if /^[a-z]+$/.test($(this).val()) and $(this).val().length > 2
+ if /^[a-z]+$/.test($(this).val())
$(this).parent().removeClass('has-error')
else
$(this).parent().addClass('has-error')
- $(this).parent().after('<div class="alert alert-danger">Username must be lowecase and have at least 3 characters</div>')
+ $(this).parent().after('<div class="alert alert-danger">Username must be all lowercase</div>')
)
$('#password').blur(->
$('#confirm').blur()
$(this).parent().next('.alert').remove()
-
- if $('.progress-bar-success').length > 0
- $(this).parent().removeClass('has-error')
- else
- $(this).parent().addClass('has-error')
)
$('#confirm').blur(->