diff options
author | Mario <mario@mariovavti.com> | 2021-04-09 09:49:36 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2021-04-09 09:49:36 +0000 |
commit | 01b081d809d128e0922fb404921f452c51c2ddb2 (patch) | |
tree | db100aa4c3b257943b95ab192514a8a93cfa6ba9 /view/js | |
parent | a34d8852b6695086ef3c9f5ff882d0d033f7d4a5 (diff) | |
download | volse-hubzilla-01b081d809d128e0922fb404921f452c51c2ddb2.tar.gz volse-hubzilla-01b081d809d128e0922fb404921f452c51c2ddb2.tar.bz2 volse-hubzilla-01b081d809d128e0922fb404921f452c51c2ddb2.zip |
register: only return verified registrations in get_pending_accounts(), more invite handling fixes
Diffstat (limited to 'view/js')
-rw-r--r-- | view/js/mod_register.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/view/js/mod_register.js b/view/js/mod_register.js index 7ad972c79..948ba756b 100644 --- a/view/js/mod_register.js +++ b/view/js/mod_register.js @@ -10,7 +10,9 @@ $(document).ready(function() { $(this).html(date.toLocaleString(undefined, {weekday: 'short', hour: 'numeric', minute: 'numeric'})); }); - $('#zar014').click( function () { $('#zar015').toggle(); }); + $('#zar014').click( function () { + $('#zar015').toggle(); + }); $('#id_invite_code').blur(function() { if($('#id_invite_code').val() === '') @@ -20,8 +22,9 @@ $(document).ready(function() { var zreg_invite = $('#id_invite_code').val(); $.get('register/invite_check.json?f=&invite_code=' + encodeURIComponent(zreg_invite),function(data) { if(!data.error) { - // FIXME: set email field to required -> $('#help_email') $('#register-form input, #register-form button').removeAttr('disabled'); + // email is always mandatory if using invite code + $('#help_email').removeClass('text-muted').addClass('text-danger').html(aStr['email_required']); } $('#invite-spinner').hide(); }); |