From 4203cc7629abe493dfd256baac916e5bee4f5e3e Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Tue, 27 Mar 2018 14:12:01 +0200 Subject: [PATCH] [page.noauth.register] used API instance --- webpack/page/noauth/register.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/webpack/page/noauth/register.js b/webpack/page/noauth/register.js index e957e6f..de20174 100644 --- a/webpack/page/noauth/register.js +++ b/webpack/page/noauth/register.js @@ -122,10 +122,7 @@ gs.get.register.func.register = function(){ if( errors ) return false; - /* (3) Create API instance */ - let api = new xhrcd('douscord-srv.xdrm.io'); - - /* (4) API bindings */ + /* (3) API bindings */ api.onreceive = function(_response){ // manage error @@ -140,12 +137,11 @@ gs.get.register.func.register = function(){ api.onclose = function(){ return gs.get.router.push('register'); }; - /* (5) API call */ + /* (4) API call */ api.send({ path: 'POST /user', form: { username: username, - mail: mail, password: password } });