changes
This commit is contained in:
@@ -158,7 +158,7 @@ export default {
|
||||
name: "currpass",
|
||||
text: "Incorrect password.",
|
||||
});
|
||||
let rs0 = await this.$insertapi("gethash", { text: this.password }, undefined, false);
|
||||
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);
|
||||
if (rs !== "error") {
|
||||
|
||||
@@ -169,7 +169,7 @@ export default {
|
||||
});
|
||||
if (rows.length === 0) return;
|
||||
rows.forEach((v) => (v.expiry = 1));
|
||||
this.$insertapi("token", rows, undefined, true);
|
||||
this.$insertapi("token", { data: rows });
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
@@ -319,7 +319,7 @@ export default {
|
||||
},
|
||||
async createAccount() {
|
||||
if (this.checkError()) return;
|
||||
let rs = await this.$insertapi("gethash", { text: this.password });
|
||||
let rs = await this.$insertapi("gethash", { data: { text: this.password } });
|
||||
this.hash = rs.rows[0];
|
||||
let data = await this.$getdata("user", { first: true, filter: { username: this.username } });
|
||||
if (data) {
|
||||
@@ -342,7 +342,7 @@ export default {
|
||||
if (this.user === "error") return;
|
||||
// add rights
|
||||
//let arr = this.$filter(this.common, {category: 'topmenu'}).map(v=>{return {user: this.user.id, function: v.id}})
|
||||
//let result = await this.$insertapi('userrights', arr)
|
||||
//let result = await this.$insertapi('userrights', { data: arr })
|
||||
//this.$dialog('Account created successfully.', 'Success', 'Success', 10)
|
||||
this.$emit("close");
|
||||
},
|
||||
|
||||
@@ -108,7 +108,7 @@ export default {
|
||||
first: true,
|
||||
params: { filter: { id: this.row.id } },
|
||||
});
|
||||
let rs = await this.$insertapi("gethash", { text: this.password });
|
||||
let rs = await this.$insertapi("gethash", { data: { text: this.password } });
|
||||
user.password = rs.rows[0];
|
||||
let rs1 = await this.$updateapi("user", user);
|
||||
if (rs1 !== "error") this.$emit("close");
|
||||
|
||||
Reference in New Issue
Block a user