changes
This commit is contained in:
@@ -160,7 +160,7 @@ export default {
|
||||
});
|
||||
let rs0 = await this.$insertapi("gethash", { data: { text: this.password }, notify: false });
|
||||
user.password = rs0.rows[0];
|
||||
let rs = await this.$updateapi("user", user, undefined, false);
|
||||
let rs = await this.$patchapi("user", user, undefined, false);
|
||||
if (rs !== "error") {
|
||||
this.currpass = undefined;
|
||||
this.password = undefined;
|
||||
|
||||
@@ -53,7 +53,7 @@ export default {
|
||||
if (this.checkError()) return this.$snackbar("Mã phê duyệt gồm 4 số từ 0-9");
|
||||
let user = await this.$getdata("user", { first: true, filter: { id: this.$store.state.login.id } });
|
||||
user.approval_code = this.code;
|
||||
await this.$updateapi("user", user);
|
||||
await this.$patchapi("user", user);
|
||||
},
|
||||
checkError() {
|
||||
if (Object.keys(this.data).length < 4) return true;
|
||||
|
||||
@@ -110,7 +110,7 @@ export default {
|
||||
});
|
||||
let rs = await this.$insertapi("gethash", { data: { text: this.password } });
|
||||
user.password = rs.rows[0];
|
||||
let rs1 = await this.$updateapi("user", user);
|
||||
let rs1 = await this.$patchapi("user", user);
|
||||
if (rs1 !== "error") this.$emit("close");
|
||||
else {
|
||||
this.$snackbar("Có lỗi xảy ra. Hãy thử lại một lần nữa", "Error");
|
||||
|
||||
Reference in New Issue
Block a user