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:
4
auth.php
4
auth.php
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user