Merge branch 'fix-config-onboarding-after-ldap' into 'master'

Fix config onboarding after LDAP initial connexion

Closes #840

See merge request framasoft/mobilizon!1045
This commit is contained in:
Thomas Citharel 2021-08-20 17:30:34 +00:00
commit d35041bd4c
3 changed files with 3 additions and 0 deletions

View file

@ -21,6 +21,7 @@
}}
</span>
<span
v-if="config"
v-html="
$t(
'This instance, <b>{instanceName} ({domain})</b>, hosts your profile, so remember its name.',

View file

@ -47,6 +47,7 @@ export function deleteUserData(): void {
AUTH_USER_EMAIL,
AUTH_ACCESS_TOKEN,
AUTH_REFRESH_TOKEN,
AUTH_USER_ACTOR_ID,
AUTH_USER_ROLE,
].forEach((key) => {
localStorage.removeItem(key);

View file

@ -386,6 +386,7 @@ import Subtitle from "../components/Utils/Subtitle.vue";
currentUser: CURRENT_USER_CLIENT,
loggedUser: {
query: USER_SETTINGS,
fetchPolicy: "network-only",
skip() {
return !this.currentUser || this.currentUser.isLoggedIn === false;
},