finetuning the server side email check

This commit is contained in:
WebMaster
2017-02-08 00:20:51 -05:00
parent 4d2af8a709
commit 6184c43e75
2 changed files with 4 additions and 4 deletions

View File

@@ -12,7 +12,7 @@ function checkEMail(theEmailAddress){
data: { "mailAddress" : theEmailAddress},
success:function(msg,jqXHR,status) {
console.log("send-success method mailcheck ",msg,jqXHR,status);
if (msg.status != "ok") {
if (msg.status === "ok") {
def.resolve();
} else {
def.reject(msg);