+ success: function (response) {
+ if (response && response.error) {
+ if (response.error == "already_approved") {
+ alert("Your request has already been proccessed and approved. We are sending you another email with a new temporary password");
+ 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");