auth : if the user is already authenticated and the URL back is provided, add a link to the defined URL

git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2140 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
2015-05-05 10:02:00 +00:00
parent 5a87b0c2f6
commit 89e9c53a30

View File

@@ -104,6 +104,10 @@ class auth
$res .= " <h4>$alreadyAuth</h4>\n";
$res .= " <p><a href='". $baseURL."authentication/logout'>".
dgettext ("domframework", "Click here to logout")."</a></p>\n";
if ($url !== "")
$res .= "<p><a href='$baseURL$url'>".
dgettext ("domframework", "Go back to the calling page").
"</a></p>\n";
}
if ($message !== "" && $message !== null)
$res .= " <div class='alert alert-danger'>$message</div>\n";