mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-13 17:13:55 +00:00
session service, username, password form
This commit is contained in:
@@ -2,41 +2,15 @@
|
||||
|
||||
import { Button, ButtonVariants } from "#/ui/Button";
|
||||
import IdentityProviders from "#/ui/IdentityProviders";
|
||||
import { TextInput } from "#/ui/Input";
|
||||
import { useRouter } from "next/navigation";
|
||||
import UsernameForm from "#/ui/UsernameForm";
|
||||
|
||||
export default function Page() {
|
||||
const router = useRouter();
|
||||
|
||||
function submit() {
|
||||
router.push("/password");
|
||||
}
|
||||
return (
|
||||
<div className="flex flex-col items-center space-y-4">
|
||||
<h1>Welcome back!</h1>
|
||||
<p className="ztdl-p">Enter your login data.</p>
|
||||
|
||||
<form className="w-full" onSubmit={() => submit()}>
|
||||
<div className="block">
|
||||
<TextInput label="Loginname" />
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<IdentityProviders />
|
||||
</div>
|
||||
<div className="mt-8 flex w-full flex-row items-center justify-between">
|
||||
<Button type="button" variant={ButtonVariants.Secondary}>
|
||||
back
|
||||
</Button>
|
||||
<Button
|
||||
type="submit"
|
||||
variant={ButtonVariants.Primary}
|
||||
onClick={() => submit()}
|
||||
>
|
||||
continue
|
||||
</Button>
|
||||
</div>
|
||||
</form>
|
||||
<UsernameForm />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user