Commit 08450e97 by 蒋勇

d

parent 35473eec
...@@ -189,12 +189,14 @@ class UserCtl extends CtlBase { ...@@ -189,12 +189,14 @@ class UserCtl extends CtlBase {
req.session.user = existedUser; req.session.user = existedUser;
return system.getResult2(existedUser); return system.getResult2(existedUser);
} else { } else {
var password = super.encryptPasswd(obj.u.password);
var params = { var params = {
mobile: obj.u.mobile, mobile: obj.u.mobile,
userName: obj.u.mobile, userName: obj.u.mobile,
nickName: obj.u.mobile, nickName: obj.u.mobile,
company_id: obj.u.cid, company_id: obj.u.cid,
themename:company.siteTheme themename:company.siteTheme,
password:password
}; };
var result = await this.service.create(params); var result = await this.service.create(params);
req.session.user = result; req.session.user = result;
......
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
form1:{ form1:{
mobile:"", mobile:"",
code:"", code:"",
password:"",
}, },
form2:{ form2:{
username:"", username:"",
...@@ -114,6 +115,7 @@ ...@@ -114,6 +115,7 @@
resetall(){ resetall(){
this.form1.mobile=""; this.form1.mobile="";
this.form1.code=""; this.form1.code="";
this.form1.password="";
this.form2.username=""; this.form2.username="";
this.form2.password=""; this.form2.password="";
this.form3.mobile=""; this.form3.mobile="";
...@@ -240,6 +242,7 @@ ...@@ -240,6 +242,7 @@
var that=this; var that=this;
var obj={ var obj={
mobile:that.form1.mobile, mobile:that.form1.mobile,
// password:that.form1.password,
}; };
that.$refs.form1.validate(valid=>{ that.$refs.form1.validate(valid=>{
if(valid){ if(valid){
......
...@@ -247,7 +247,7 @@ ...@@ -247,7 +247,7 @@
var that=this; var that=this;
var obj={ var obj={
mobile:that.form1.mobile, mobile:that.form1.mobile,
password:that.form1.password,
}; };
that.$refs.form1.validate(valid=>{ that.$refs.form1.validate(valid=>{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment