Example #1
0
 public function logout()
 {
     $user = \CODOF\User\User::get();
     $user->logout();
     if (\CODOF\Plugin::is_active('sso')) {
         header('Location: ' . \CODOF\Util::get_opt('sso_logout_user_path'));
         exit;
     }
     header('Location: ' . RURI);
 }
Example #2
0
 /**
  * Gets the register url for the user
  * @return string
  */
 public static function getRegisterUrl()
 {
     if (\CODOF\Plugin::is_active('sso')) {
         return \CODOF\Util::get_opt('sso_register_user_path');
     }
     return RURI . 'user/register';
 }