app.section('login');

viewModel.login = {}; var lg = viewModel.login;

lg.templateConfigLogin = {
	username: "",
	password: "",
	url: ""
};

lg.templateForgotLogin ={
	email: ""
};

lg.templateConfirmReset ={
	new_pass: "",
	confirm_pass: ""
}

lg.configLogin = ko.mapping.fromJS(lg.templateConfigLogin);
lg.forgetLogin = ko.mapping.fromJS(lg.templateForgotLogin);
lg.confirmReset = ko.mapping.fromJS(lg.templateConfirmReset);
lg.rePassword = ko.observable('');

lg.getLogin = function(){
	var url = lg.configLogin.url(location.origin);
	var param = ko.mapping.toJS(lg.configLogin);
	app.ajaxPost("/login/processlogin", param, function(res){
		if(!app.isFine(res)){
			return;
		}

	});
}

lg.getForgetLogin = function(){
	var param = ko.mapping.toJS(lg.forgetLogin);
	console.log(param);
	$('#modalConfirm').modal({
		show: 'true',
		backdrop: 'static',
		keyboard: 'false'
	});
	app.ajaxPost("/login/resetpassword", param, function(res){
		if(!app.isFine(res)){
			return;
		}

	});


}

lg.getConfirmReset = function(){
	var param = ko.mapping.toJS(lg.confirmReset);
	console.log(param);
	app.ajaxPost("/login/resetpassword", param, function(res){
		if(!app.isFine(res)){
			return;
		}

	});
}

$(function (){
	
});
@@ -126,17 +126,8 @@
 %22%22,%0A
-%09url: %22%22%0A
 %7D;%0A%0A
@@ -159,16 +159,26 @@
 %0A%09email:
+ %22%22,%0A%09url:
  %22%22%0A%7D;%0A%0A
@@ -488,56 +488,8 @@
 ()%7B%0A
-%09var url = lg.configLogin.url(location.origin);%0A
 %09var
@@ -661,32 +661,80 @@
 n = function()%7B%0A
+%09var url = lg.forgetLogin.url(location.origin);%0A
 %09var param = ko.

update page-login.js