getUser() 공개 메소드

This method returns the CAS user's login name.
public getUser ( ) : string
리턴 string the login name of the authenticated user
예제 #1
0
파일: CAS.php 프로젝트: DCUnit711/Demeter
 /**
  * This method returns the CAS user's login name.
  *
  * @return string the login name of the authenticated user
  * @warning should only be called after phpCAS::forceAuthentication()
  * or phpCAS::checkAuthentication().
  * */
 public static function getUser()
 {
     phpCAS::_validateClientExists();
     try {
         return self::$_PHPCAS_CLIENT->getUser();
     } catch (Exception $e) {
         phpCAS::error(get_class($e) . ': ' . $e->getMessage());
     }
 }