Commit 37963e7a authored by Leigh B. Stoller's avatar Leigh B. Stoller
Browse files

Change "already logged in" error message to reflect the fact that we

do not actually know for sure if the user is not logged in, or just
some new user who happened to pick an existing name. Make this clear
in the error message so that new users know to pick a new name.
parent 10c60005
......@@ -123,7 +123,12 @@ else {
#
if ($returning) {
if (CHECKLOGIN($proj_head_uid) != 1) {
USERERROR("You are not logged in. Please log in and try again.", 1);
USERERROR("The Username '$proj_head_uid' is in use. ".
"If you already have an Emulab account, please go back ".
"and login before trying to create a new project.<br><br>".
"If you are a <em>new</em> Emulab user trying to start ".
"your first project, please go back and select a different ".
"Username.", 1);
}
}
else {
......
......@@ -75,7 +75,12 @@ else {
#
if ($returning) {
if (CHECKLOGIN($uid) != 1) {
USERERROR("You are not logged in. Please log in and try again.", 1);
USERERROR("The Username '$proj_head_uid' is in use. ".
"If you already have an Emulab account, please go back ".
"and login before trying to join a new project.<br><br>".
"If you are a <em>new</em> Emulab user trying to join ".
"your first project, please go back and select a different ".
"Username.", 1);
}
}
else {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment