Define a basic login form with redirection to the Dashboard #127
| @ -1,3 +1,5 @@ | |||||||
|  | /* Copyright (C) 2024 Manuel Bustillo*/ | ||||||
|  | 
 | ||||||
| import { getCsrfToken } from '@/app/lib/utils'; | import { getCsrfToken } from '@/app/lib/utils'; | ||||||
| 
 | 
 | ||||||
| export function login({ email, password, onLogin }: { email: string, password: string, onLogin: () => void }) { | export function login({ email, password, onLogin }: { email: string, password: string, onLogin: () => void }) { | ||||||
|  | |||||||
| @ -1,3 +1,5 @@ | |||||||
|  | /* Copyright (C) 2024 Manuel Bustillo*/ | ||||||
|  | 
 | ||||||
| 'use client'; | 'use client'; | ||||||
| 
 | 
 | ||||||
| import { FloatLabel } from 'primereact/floatlabel'; | import { FloatLabel } from 'primereact/floatlabel'; | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user