Atualizar src/app/admin/login/page.jsx
This commit is contained in:
@ -8,13 +8,13 @@ export default function LoginPage() {
|
||||
const router = useRouter();
|
||||
|
||||
const handleSubmit = async (e) => {
|
||||
e.preventDefault();
|
||||
// Aqui virá a autenticação
|
||||
if (email === 'admin@friascar.com' && password === 'admin123') {
|
||||
// Salvar token ou session
|
||||
router.push('/admin');
|
||||
}
|
||||
};
|
||||
e.preventDefault();
|
||||
if (email === 'admin@friascar.com' && password === 'admin123') {
|
||||
// Salvar token em cookie
|
||||
document.cookie = 'auth_token=true; path=/';
|
||||
window.location.href = '/admin';
|
||||
}
|
||||
};
|
||||
|
||||
return (
|
||||
<div className="min-h-screen bg-gray-50 flex flex-col justify-center">
|
||||
|
||||
Reference in New Issue
Block a user