Update register.js

This commit is contained in:
Janis M
2022-04-03 21:00:26 +02:00
parent 0b4f93f503
commit bc9a36e24a

View File

@@ -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)