changes
This commit is contained in:
@@ -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");
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user