mirror of
https://github.com/DerTyp7/shop-ejs-expressjs.git
synced 2025-10-29 04:22:10 +01:00
Update register.js
This commit is contained in:
@@ -310,10 +310,11 @@ function submitForm(){
|
|||||||
data : formObj,
|
data : formObj,
|
||||||
success: function(data)
|
success: function(data)
|
||||||
{
|
{
|
||||||
if(data == "0"){
|
if(data != "0"){
|
||||||
window.location.href = "/login";
|
|
||||||
}else{
|
|
||||||
handleError(data);
|
handleError(data);
|
||||||
|
|
||||||
|
}else{
|
||||||
|
window.location.href = "/login"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
error: function (jqXHR, textStatus, errorThrown)
|
error: function (jqXHR, textStatus, errorThrown)
|
||||||
|
|||||||
Reference in New Issue
Block a user