Beispiel #1
0
 /**
  * @param \UserInfo $uo
  * @return bool
  * @throws \Exception
  */
 public function getAuthTypeImagePath($uo)
 {
     $lat = $uo->getUserObject()->getLastAuthType();
     if ($lat > 1) {
         try {
             $at = AuthenticationType::getByID($lat);
             if (method_exists($at->controller, 'getUserImagePath')) {
                 $uimgpath = $at->controller->getUserImagePath($uo);
                 return $uimgpath;
             }
         } catch (\Exception $e) {
         }
     }
     return false;
 }