forked from chamilo/chamilo-lms
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SSO: Display: External logins under below the login form - refs BT#21881
- Loading branch information
Showing
9 changed files
with
110 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
.external-logins { | ||
@apply flex flex-col gap-2 items-center; | ||
|
||
&__divider { | ||
@apply w-60 mx-auto uppercase; | ||
} | ||
|
||
&__button-list { | ||
@apply space-y-4; | ||
} | ||
|
||
&__button { | ||
@apply border border-gray-25 bg-white rounded-lg text-gray-90 py-4 px-12 block font-semibold; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<script setup> | ||
import BaseAppLink from "../basecomponents/BaseAppLink.vue" | ||
import BaseDivider from "../basecomponents/BaseDivider.vue" | ||
import { useI18n } from "vue-i18n" | ||
import { usePlatformConfig } from "../../store/platformConfig" | ||
const { t } = useI18n() | ||
const platformConfig = usePlatformConfig() | ||
</script> | ||
|
||
<template> | ||
<div | ||
v-if="platformConfig.externalAuthentication.length > 0" | ||
class="external-logins" | ||
> | ||
<BaseDivider | ||
:title="t('Or')" | ||
align="center" | ||
class="external-logins__divider" | ||
/> | ||
|
||
<ul class="external-logins__button-list"> | ||
<li | ||
v-for="(extAuth, idx) in platformConfig.externalAuthentication" | ||
:key="idx" | ||
> | ||
<BaseAppLink | ||
:url="extAuth.url" | ||
class="external-logins__button" | ||
> | ||
{{ t("Continue with %s", [extAuth.title]) }} | ||
</BaseAppLink> | ||
</li> | ||
</ul> | ||
</div> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters