feat: update front layout

This commit is contained in:
Maël Gangloff
2024-07-27 12:59:40 +02:00
parent 8f04e0ed7e
commit ea97e93f94
3 changed files with 36 additions and 26 deletions

View File

@@ -19,7 +19,7 @@ export default function Page() {
const onFinish = (data: FieldType) => {
login(data.username, data.password).then(() => {
setIsAuthenticated(true)
navigate('/search/domain')
navigate('/home')
}).catch((e) => {
setIsAuthenticated(false)
setError(e.response.data.message)