add registration and session logic
This commit is contained in:
@@ -2,11 +2,11 @@
|
||||
|
||||
import styles from '@/app/styles/login.module.scss'
|
||||
import { useActionState } from 'react';
|
||||
import { authenticate } from '@/app/api/action';
|
||||
import { authorization } from '@/app/actions/auth';
|
||||
|
||||
export default function LoginForm() {
|
||||
const [errorMessage, formAction, isPending] = useActionState(
|
||||
authenticate,
|
||||
authorization,
|
||||
undefined,
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user