changes
This commit is contained in:
@@ -104,7 +104,10 @@ export default {
|
||||
methods: {
|
||||
async changePassword() {
|
||||
if (!this.checkPassword()) return;
|
||||
let user = await this.$getdata("user", undefined, { filter: { id: this.row.id } }, true);
|
||||
let user = await this.$getdata("user", {
|
||||
first: true,
|
||||
params: { filter: { id: this.row.id } },
|
||||
});
|
||||
let rs = await this.$insertapi("gethash", { text: this.password });
|
||||
user.password = rs.rows[0];
|
||||
let rs1 = await this.$updateapi("user", user);
|
||||
|
||||
Reference in New Issue
Block a user