diff --git a/js/settings.js b/js/settings.js index 1dc2ac0..07a2690 100644 --- a/js/settings.js +++ b/js/settings.js @@ -20,4 +20,11 @@ $(document).ready(function() { event.preventDefault(); } }); + $('#email_is_login').change(function(event) { + if (event.target.checked) { + $('.login-name-policy').addClass('hidden'); + } else { + $('.login-name-policy').removeClass('hidden'); + } + }); }); diff --git a/templates/admin.php b/templates/admin.php index 0679cc1..e68186f 100644 --- a/templates/admin.php +++ b/templates/admin.php @@ -59,13 +59,15 @@ foreach ($_['groups'] as $group) {
-- t('If configured, usernames will be validated through the regular expression. If the validation fails the user is prompted with a generic error. Make sure your regex is working correctly.'));?> + t('If configured, login names will be validated through the regular expression. If the validation fails the user is prompted with a generic error. Make sure your regex is working correctly.'));?> +