refactor(core): Delete unused GET /me endpoint (no-changelog) (#5498)
This commit is contained in:
committed by
GitHub
parent
d143f3f2ec
commit
12104bc4a3
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user