Commit 08450e97 by 蒋勇

d

parent 35473eec
......@@ -189,12 +189,14 @@ class UserCtl extends CtlBase {
req.session.user = existedUser;
return system.getResult2(existedUser);
} else {
var password = super.encryptPasswd(obj.u.password);
var params = {
mobile: obj.u.mobile,
userName: obj.u.mobile,
nickName: obj.u.mobile,
company_id: obj.u.cid,
themename:company.siteTheme
themename:company.siteTheme,
password:password
};
var result = await this.service.create(params);
req.session.user = result;
......
......@@ -25,6 +25,7 @@
form1:{
mobile:"",
code:"",
password:"",
},
form2:{
username:"",
......@@ -114,6 +115,7 @@
resetall(){
this.form1.mobile="";
this.form1.code="";
this.form1.password="";
this.form2.username="";
this.form2.password="";
this.form3.mobile="";
......@@ -240,6 +242,7 @@
var that=this;
var obj={
mobile:that.form1.mobile,
// password:that.form1.password,
};
that.$refs.form1.validate(valid=>{
if(valid){
......
......@@ -247,7 +247,7 @@
var that=this;
var obj={
mobile:that.form1.mobile,
password:that.form1.password,
};
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