feat: trying to add normal login button
This commit is contained in:
parent
486e8cc1f8
commit
710db0a991
3 changed files with 17 additions and 2 deletions
|
@ -7,6 +7,8 @@ import { redirect } from 'next/navigation';
|
|||
import style from './login.module.css';
|
||||
|
||||
import '@/app/globals.css';
|
||||
import SSOLogin from '@/components/user/sso-login-button';
|
||||
import Login from '@/components/user/login-button';
|
||||
|
||||
export default async function LoginPage() {
|
||||
const session = await auth();
|
||||
|
@ -32,9 +34,11 @@ export default async function LoginPage() {
|
|||
/>
|
||||
</form>
|
||||
|
||||
<Login provider={''} providerDisplayName={''}></Login>
|
||||
|
||||
<hr style={{ width: 230 }} />
|
||||
|
||||
<Login provider='authentik' providerDisplayName='SSO' />
|
||||
<SSOLogin provider='authentik' providerDisplayName='SSO' />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
|
11
src/components/user/login-button.tsx
Normal file
11
src/components/user/login-button.tsx
Normal file
|
@ -0,0 +1,11 @@
|
|||
import Button from '../button';
|
||||
|
||||
export default function Login() {
|
||||
return (
|
||||
<form>
|
||||
<Button type='submit' mode='primary' width={250}>
|
||||
Login
|
||||
</Button>
|
||||
</form>
|
||||
);
|
||||
}
|
|
@ -2,7 +2,7 @@ import { signIn } from '@/auth';
|
|||
import Button from '../button';
|
||||
import { faOpenid } from '@fortawesome/free-brands-svg-icons';
|
||||
|
||||
export default function Login({
|
||||
export default function SSOLogin({
|
||||
provider,
|
||||
providerDisplayName,
|
||||
}: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue