diff --git a/src/api.ts b/src/api.ts index 24edc12..eea769e 100644 --- a/src/api.ts +++ b/src/api.ts @@ -43,12 +43,14 @@ export class User { email: string | undefined; password: string | undefined; username: string | null = null; - confidantEmail: string | null = null; isAuthenticated = false; + isTrusted = false; private token = ""; - static async confirm(uid: string, token: string): Promise { - await api_request("POST", "users/activation", 204, { uid, token }); + async activate(): Promise { + await api_request("POST", "users/activate", 204, { + password: this.password, + }); } async login(): Promise { @@ -84,7 +86,6 @@ export class User { 200, { username: this.username, - confidant_email: this.confidantEmail, }, this.token ); diff --git a/src/components/UserTable.vue b/src/components/UserTable.vue index 51e9491..2a98ae1 100644 --- a/src/components/UserTable.vue +++ b/src/components/UserTable.vue @@ -1,20 +1,8 @@