remove keycloak use cookie auth
This commit is contained in:
parent
035db71697
commit
5a5e37c12d
27 changed files with 501 additions and 440 deletions
|
|
@ -397,6 +397,7 @@
|
|||
</div> -->
|
||||
</q-form>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { ref, onMounted, watch } from "vue";
|
||||
import { useCounterMixin } from "@/stores/mixin";
|
||||
|
|
@ -412,8 +413,8 @@ import {
|
|||
changeData,
|
||||
} from "@/modules/03_recruiting/interface/index/Main";
|
||||
import HeaderTop from "@/modules/03_recruiting/components/top.vue";
|
||||
import { tokenParsed } from "@/plugins/auth";
|
||||
import { useRoute } from "vue-router";
|
||||
import keycloak from "@/plugins/keycloak";
|
||||
import { useQuasar } from "quasar";
|
||||
|
||||
const props = defineProps({
|
||||
|
|
@ -499,12 +500,10 @@ const fetchData = async () => {
|
|||
defaultInformation.value.knowledge = data.knowledge;
|
||||
})
|
||||
.catch(() => {
|
||||
defaultInformation.value.email =
|
||||
keycloak.tokenParsed == null ? "" : keycloak.tokenParsed.email;
|
||||
defaultInformation.value.firstname =
|
||||
keycloak.tokenParsed == null ? "" : keycloak.tokenParsed.given_name;
|
||||
defaultInformation.value.lastname =
|
||||
keycloak.tokenParsed == null ? "" : keycloak.tokenParsed.family_name;
|
||||
const user = await tokenParsed();
|
||||
defaultInformation.value.email = user ? user.email : "";
|
||||
defaultInformation.value.firstname = user ? user.given_name : "";
|
||||
defaultInformation.value.lastname = user ? user.family_name : "";
|
||||
})
|
||||
.finally(() => {
|
||||
hideLoader();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue