X-Git-Url: https://git.auder.net/?p=qomet.git;a=blobdiff_plain;f=public%2Fjavascripts%2Flogin.js;h=4f70e19eed92346b3793524da403aaba4c2e1d05;hp=1bb5b72e859b010b8ebce16351624605611cee34;hb=b3540dbb5c169db3c7cf49a04e253ab3a6940916;hpb=1131a8e77245bf3e088d945db785c1e22dc5f998 diff --git a/public/javascripts/login.js b/public/javascripts/login.js index 1bb5b72..4f70e19 100644 --- a/public/javascripts/login.js +++ b/public/javascripts/login.js @@ -25,7 +25,6 @@ window.onload = function() { data: { messages: messages, user: { - forename: "", name: "", email: "", }, @@ -52,7 +51,7 @@ window.onload = function() { } let error = Validator.checkObject({email: this.user.email}, "User"); if (!error && this.stage == "register") - error = Validator.checkObject({forename: this.user.forename, name: this.user.name}, "User"); + error = Validator.checkObject({name: this.user.name}, "User"); let $dialog = $("#dialog"); show($dialog); setTimeout(() => {hide($dialog);}, 3000); @@ -65,14 +64,12 @@ window.onload = function() { data: { email: encodeURIComponent(this.user.email), - forename: encodeURIComponent(this.user.forename), //may be unused name: encodeURIComponent(this.user.name), //may be unused }, dataType: "json", success: res => { if (!res.errmsg) { - this.user["forename"] = ""; this.user["name"] = ""; this.user["email"] = ""; showMsg($dialog, "info", infos[this.stage]);