Commit 85fb58cb authored by yyh's avatar yyh

md5types

parent 8bc3514d
declare module 'blueimp-md5' { declare module 'blueimp-md5' {
const blueimpMd5: any; const md5: any;
export default blueimpMd5 ; export default md5 ;
} }
\ No newline at end of file
...@@ -88,7 +88,6 @@ import { Component, Prop, Vue } from 'vue-property-decorator'; ...@@ -88,7 +88,6 @@ import { Component, Prop, Vue } from 'vue-property-decorator';
import { Form, Field, CellGroup, Button } from 'vant'; import { Form, Field, CellGroup, Button } from 'vant';
import { Action } from 'vuex-class'; import { Action } from 'vuex-class';
import md5 from 'blueimp-md5'; import md5 from 'blueimp-md5';
console.log()
@Component({ @Component({
components: { components: {
[Form.name]: Form, [Form.name]: Form,
...@@ -110,7 +109,7 @@ export default class Login extends Vue { ...@@ -110,7 +109,7 @@ export default class Login extends Vue {
login_type: this.loginType, login_type: this.loginType,
phone: this.phone, phone: this.phone,
code: this.code, code: this.code,
pwd: md5(this.pwd+md5(this.pwd.length)), pwd: md5(this.pwd + md5(this.pwd.length)),
email: this.email, email: this.email,
}); });
localStorage.setItem('userInfo', JSON.stringify(res)); localStorage.setItem('userInfo', JSON.stringify(res));
......
...@@ -81,7 +81,7 @@ export default class SetPasswd extends Vue { ...@@ -81,7 +81,7 @@ export default class SetPasswd extends Vue {
return; return;
} }
const account: string = phone || email; const account: string = phone || email;
await this.$api.user.setPwd(this.codeType, md5(pwd+md5(pwd.length)), code, { phone, email }); await this.$api.user.setPwd(this.codeType, md5(pwd + md5(pwd.length)), code, { phone, email });
this.step = '4'; this.step = '4';
} }
} }
......
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