git://git.onelab.eu
/
plstackapi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
return an error when trying to register a deleted user
[plstackapi.git]
/
planetstack
/
templates
/
admin
/
login.html
diff --git
a/planetstack/templates/admin/login.html
b/planetstack/templates/admin/login.html
index
37f1055
..
29534db
100644
(file)
--- a/
planetstack/templates/admin/login.html
+++ b/
planetstack/templates/admin/login.html
@@
-139,10
+139,13
@@
$("#request-signup").unbind().click(function(){
} else if (response.error == "already_pending") {
alert("Your request is already pending and awaiting approval");
return;
} else if (response.error == "already_pending") {
alert("Your request is already pending and awaiting approval");
return;
+ } else if (response.error == "is_deleted") {
+ alert("Your user record is in a deleted state. Please contact OpenCloud support");
+ return;
}
}
}
}
- $("#request-account-form").dialog("close");
- alert("Your request has been submitted");
+ $("#request-account-form").dialog("close");
+ alert("Your request has been submitted");
},
error:function (xhr, textStatus, thrownError){
alert("Error:", textStatus + " " + xhr.responseText);
},
error:function (xhr, textStatus, thrownError){
alert("Error:", textStatus + " " + xhr.responseText);