|
|
|
@ -291,7 +291,7 @@ class MailboxHandler extends PFAHandler {
|
|
|
|
|
/**
|
|
|
|
|
* check if quota is allowed
|
|
|
|
|
*/
|
|
|
|
|
protected function _field_quota($field, $val) {
|
|
|
|
|
protected function _validate_quota($field, $val) {
|
|
|
|
|
if ( !$this->check_quota ($val) ) {
|
|
|
|
|
$this->errormsg[$field] = Config::lang('pEdit_mailbox_quota_text_error');
|
|
|
|
|
return false;
|
|
|
|
@ -304,8 +304,8 @@ class MailboxHandler extends PFAHandler {
|
|
|
|
|
* - autogenerate password if enabled in config and $new
|
|
|
|
|
* - display password on $new if enabled in config or autogenerated
|
|
|
|
|
*/
|
|
|
|
|
protected function _field_password($field, $val) {
|
|
|
|
|
if (!$this->_field_password2($field, $val)) return false;
|
|
|
|
|
protected function _validate_password($field, $val) {
|
|
|
|
|
if (!$this->_validate_password2($field, $val)) return false;
|
|
|
|
|
|
|
|
|
|
if ($this->new && Config::read('generate_password') == 'YES' && $val == '') {
|
|
|
|
|
# auto-generate new password
|
|
|
|
@ -325,7 +325,7 @@ class MailboxHandler extends PFAHandler {
|
|
|
|
|
* compare password / password2 field
|
|
|
|
|
* error message will be displayed at the password2 field
|
|
|
|
|
*/
|
|
|
|
|
protected function _field_password2($field, $val) {
|
|
|
|
|
protected function _validate_password2($field, $val) {
|
|
|
|
|
return $this->compare_password_fields('password', 'password2');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|