From aa0190dff1c63ad9176dbe7b74055030a7f5dc82 Mon Sep 17 00:00:00 2001 From: "John Molakvoæ (skjnldsv)" Date: Wed, 28 Feb 2018 16:28:40 +0100 Subject: Fixed email form on new user MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ (skjnldsv) --- settings/js/users/users.js | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'settings/js') diff --git a/settings/js/users/users.js b/settings/js/users/users.js index d00423a99f3..9bbdd48e99e 100644 --- a/settings/js/users/users.js +++ b/settings/js/users/users.js @@ -1048,21 +1048,6 @@ $(document).ready(function () { })); return false; } - if ($.trim(password) === '' && !$('#CheckboxMailOnUserCreate').is(':checked')) { - OC.Notification.showTemporary(t('settings', 'Error creating user: {message}', { - message: t('settings', 'A valid password must be provided') - })); - return false; - } - if (!$('#CheckboxMailOnUserCreate').is(':checked')) { - email = ''; - } - if ($('#CheckboxMailOnUserCreate').is(':checked') && $.trim(email) === '') { - OC.Notification.showTemporary(t('settings', 'Error creating user: {message}', { - message: t('settings', 'A valid email must be provided') - })); - return false; - } var promise; if (UserDeleteHandler) { -- cgit v1.2.3