Example #1
0
 /**
  * Restore default password rules (found in password_rules table class)
  *
  * @return  void
  */
 public function restore_default_contentTask()
 {
     if (!User::authorise('core.manage', $this->_option) && !User::authorise('core.admin', $this->_option)) {
         App::abort(403, Lang::txt('JERROR_ALERTNOAUTHOR'));
     }
     // Get the object
     Rule::defaultContent(true);
     // Output message and redirect
     Notify::success(Lang::txt('COM_MEMBERS_PASSWORD_RULES_RESTORED'));
     // Redirect
     $this->cancelTask();
 }