Skip to content
Snippets Groups Projects
Unverified Commit 65766d46 authored by jdr00t's avatar jdr00t Committed by GitHub
Browse files

Remove Sign Up button when using OIDC (#5431)


* Remove Sign Up button when using OIDC

* Remove SignUp Button on Join with OIDC

---------

Co-authored-by: default avatarAhmad Farhat <ahmad.af.farhat@gmail.com>
parent de480941
Branches
Tags
No related merge requests found
...@@ -46,7 +46,6 @@ export default function AuthButtons({ direction }) { ...@@ -46,7 +46,6 @@ export default function AuthButtons({ direction }) {
<input type="hidden" name="authenticity_token" value={document.querySelector('meta[name="csrf-token"]').content} /> <input type="hidden" name="authenticity_token" value={document.querySelector('meta[name="csrf-token"]').content} />
<input type="hidden" name="current_provider" value={env?.CURRENT_PROVIDER} /> <input type="hidden" name="current_provider" value={env?.CURRENT_PROVIDER} />
<Stack direction={direction} gap={2}> <Stack direction={direction} gap={2}>
<Button variant="brand-outline-color" className="btn" type="submit">{t('authentication.sign_up')}</Button>
<Button variant="brand" className="btn" type="submit">{t('authentication.sign_in')}</Button> <Button variant="brand" className="btn" type="submit">{t('authentication.sign_in')}</Button>
</Stack> </Stack>
</Form> </Form>
......
...@@ -36,7 +36,6 @@ export default function RequireAuthentication({ path }) { ...@@ -36,7 +36,6 @@ export default function RequireAuthentication({ path }) {
env?.EXTERNAL_AUTH ? ( env?.EXTERNAL_AUTH ? (
<Form action={process.env.OMNIAUTH_PATH} method="POST" data-turbo="false"> <Form action={process.env.OMNIAUTH_PATH} method="POST" data-turbo="false">
<input type="hidden" name="authenticity_token" value={document.querySelector('meta[name="csrf-token"]').content} /> <input type="hidden" name="authenticity_token" value={document.querySelector('meta[name="csrf-token"]').content} />
<Button variant="brand-outline-color" className="btn btn-lg m-2" type="submit">{t('authentication.sign_up')}</Button>
<Button variant="brand" className="btn btn-lg m-2" type="submit">{t('authentication.sign_in')}</Button> <Button variant="brand" className="btn btn-lg m-2" type="submit">{t('authentication.sign_in')}</Button>
</Form> </Form>
) : ( ) : (
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment