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