$attrs = $auth->getAttributes();
if (!isset($attrs['name'][0])) {
- throw new Exception('fsfdrupalauth: "name" attribute missing.');
- }
+ throw new Exception('fsfdrupalauth: "name" attribute missing.');
+ }
- echo $this->t('{fsfdrupalauth:fsfdrupalauth:loggedin_as_description}') . "<strong>" . htmlspecialchars($attrs['name'][0]) . "</strong>";
+ echo $this->t('{fsfdrupalauth:fsfdrupalauth:loggedin_as_description}') . "<strong>" . htmlspecialchars($attrs['name'][0]) . "</strong>";
echo " <a href=\"/cas/logout?url=/cas/login\">[log out]</a>";
?>
</p>
if (isset($this->data['autofocus'])) {
echo '<script type="text/javascript">window.onload = function() {document.getElementById(\'' . $this->data['autofocus'] . '\').focus();}</script>';
-}
\ No newline at end of file
+}