refactor(core): Delete unused GET /me endpoint (no-changelog) (#5498)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2023-02-17 10:58:48 +01:00
committed by GitHub
parent d143f3f2ec
commit 12104bc4a3
5 changed files with 1 additions and 124 deletions

View File

@@ -1,7 +1,6 @@
import {
changePassword,
deleteUser,
getCurrentUser,
getInviteLink,
getUsers,
inviteUsers,
@@ -138,16 +137,6 @@ export const useUsersStore = defineStore(STORES.USERS, {
}
Vue.set(this.currentUser, 'personalizationAnswers', answers);
},
async getCurrentUser(): Promise<IUserResponse | null> {
const rootStore = useRootStore();
const user = await getCurrentUser(rootStore.getRestApiContext);
if (user) {
this.addUsers([user]);
this.currentUserId = user.id;
}
return user;
},
async loginWithCookie(): Promise<void> {
const rootStore = useRootStore();
const user = await loginCurrentUser(rootStore.getRestApiContext);