Browse Source
Fixed email form on new user
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
pull/8587/head
John Molakvoæ (skjnldsv)
9 years ago
No known key found for this signature in database
GPG Key ID: FB5ACEED51955BF8
2 changed files with
1 additions and
16 deletions
-
settings/js/users/users.js
-
settings/templates/users/part.userlist.php
|
|
|
@ -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) { |
|
|
|
|
|
|
|
@ -33,7 +33,7 @@ |
|
|
|
autocomplete="off" autocapitalize="none" autocorrect="off" /> |
|
|
|
</td> |
|
|
|
<td class="password"> |
|
|
|
<input id="newuserpassword" type="password" required |
|
|
|
<input id="newuserpassword" type="password" |
|
|
|
placeholder="<?php p($l->t('Password'))?>" name="password" |
|
|
|
autocomplete="new-password" autocapitalize="none" autocorrect="off" /> |
|
|
|
</td> |
|
|
|
|