Loading src/UnicaenAuthentification/View/Helper/UserConnection.php +8 −2 Original line number Diff line number Diff line Loading @@ -35,6 +35,13 @@ class UserConnection extends UserAbstract return $out; } public function computeConnectionLink() { $urlHelper = $this->getView()->plugin('url'); $href = $urlHelper('zfcuser/login'); if ($this->onlyCas) $href = $urlHelper('zfcuser/authenticate',['type' => 'cas']); return $href; } /** * * @return string Loading @@ -47,8 +54,7 @@ class UserConnection extends UserAbstract $template = '<a class="navbar-link user-connection" href="%s" title="%s">%s</a>'; if (!$identity) { $href = $urlHelper('zfcuser/login'); if ($this->onlyCas) $href = $urlHelper('zfcuser/authenticate',['type' => 'cas']); $href = $this->computeConnectionLink(); $lib = "Connexion"; $title = "Affiche le formulaire d'authentification"; } Loading Loading
src/UnicaenAuthentification/View/Helper/UserConnection.php +8 −2 Original line number Diff line number Diff line Loading @@ -35,6 +35,13 @@ class UserConnection extends UserAbstract return $out; } public function computeConnectionLink() { $urlHelper = $this->getView()->plugin('url'); $href = $urlHelper('zfcuser/login'); if ($this->onlyCas) $href = $urlHelper('zfcuser/authenticate',['type' => 'cas']); return $href; } /** * * @return string Loading @@ -47,8 +54,7 @@ class UserConnection extends UserAbstract $template = '<a class="navbar-link user-connection" href="%s" title="%s">%s</a>'; if (!$identity) { $href = $urlHelper('zfcuser/login'); if ($this->onlyCas) $href = $urlHelper('zfcuser/authenticate',['type' => 'cas']); $href = $this->computeConnectionLink(); $lib = "Connexion"; $title = "Affiche le formulaire d'authentification"; } Loading