Skip to content
Snippets Groups Projects
Commit f64f2b05 authored by echicken's avatar echicken
Browse files

Added link to email for authenticated users.

parent 9d934e86
No related branches found
No related tags found
No related merge requests found
if(user.alias.toUpperCase() != webIni.WebGuest.toUpperCase()) {
print("You are logged in as <b>" + user.alias + "</b><br />");
print("<a href='./index.xjs?page=999-email.ssjs'>Email</a><br />");
print("<script language='javascript' type='text/javascript'>");
print("document.write('<a class=link href=./?logout=true&callback=' + location.pathname + location.search + '>Log out</a>');");
print("document.write('<a href=./?logout=true&callback=' + location.pathname + location.search + '>Log out</a>');");
print("</script><br />");
} else {
print("<form action=./ method=post>");
......@@ -12,7 +13,7 @@ if(user.alias.toUpperCase() != webIni.WebGuest.toUpperCase()) {
print("</script>");
print("<input class='border' type='submit' value='Log in' />");
print("</form>");
print("<a class='link' href='./index.xjs?page=999-newUser.ssjs'>Register</a>");
print("<a href='./index.xjs?page=999-newUser.ssjs'>Register</a>");
if(http_request.query.hasOwnProperty('loginfail'))
print("<br /><i>Invalid username or password</i>");
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment