Changeset 12015
- Timestamp:
- 09/05/07 11:00:39 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/MidCOM_2_8/net.nehmer.account/config/config.inc
r11550 r12015 9 9 'allow_register' => true, 10 10 'allow_change_username' => true, 11 'allow_change_password' => true, 11 12 'allow_cancel_membership' => true, 12 13 'allow_publish' => true, branches/MidCOM_2_8/net.nehmer.account/handler/maintain.php
r11550 r12015 92 92 function _handler_password($handler_id, $args, &$data) 93 93 { 94 if (!$this->_config->get('allow_change_password')) 95 { 96 $_MIDCOM->generate_error(MIDCOM_ERRCRIT, 'Password changing is disabled'); 97 // This will exit() 98 } 94 99 $_MIDCOM->auth->require_valid_user(); 95 100 $this->_account = $_MIDCOM->auth->user->get_storage(); branches/MidCOM_2_8/net.nehmer.account/viewer.php
r11550 r12015 180 180 } 181 181 182 $this->_request_switch['password'] = Array 183 ( 184 'handler' => Array('net_nehmer_account_handler_maintain', 'password'), 185 'fixed_args' => Array('password'), 186 ); 182 if ($this->_config->get('allow_change_password')) 183 { 184 $this->_request_switch['password'] = Array 185 ( 186 'handler' => Array('net_nehmer_account_handler_maintain', 'password'), 187 'fixed_args' => Array('password'), 188 ); 189 } 187 190 188 191 if ($this->_config->get('allow_change_username')) … … 491 494 } 492 495 493 $this->_view_toolbar->add_item 494 ( 495 array 496 ( 497 MIDCOM_TOOLBAR_URL => "password/", 498 MIDCOM_TOOLBAR_LABEL => $this->_l10n->get('change password'), 499 MIDCOM_TOOLBAR_ICON => 'stock-icons/16x16/repair.png', 500 ) 501 ); 496 if ($this->_config->get('allow_change_password')) 497 { 498 $this->_view_toolbar->add_item 499 ( 500 array 501 ( 502 MIDCOM_TOOLBAR_URL => "password/", 503 MIDCOM_TOOLBAR_LABEL => $this->_l10n->get('change password'), 504 MIDCOM_TOOLBAR_ICON => 'stock-icons/16x16/repair.png', 505 ) 506 ); 507 } 502 508 503 509 if ($this->_config->get('allow_change_username'))
