Skip to content

Commit 41ef8a2

Browse files
committed
chore: ajustes de configuracao e fluxo
1 parent bba8d07 commit 41ef8a2

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

backend/app/core/config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def all_cors_origins(self) -> list[str]:
5050

5151
PROJECT_NAME: str
5252
SENTRY_DSN: HttpUrl | None = None
53-
POSTGRES_SERVER: str
53+
POSTGRES_HOST: str
5454
POSTGRES_PORT: int = 5432
5555
POSTGRES_USER: str
5656
POSTGRES_PASSWORD: str = ""
@@ -63,7 +63,7 @@ def SQLALCHEMY_DATABASE_URI(self) -> PostgresDsn:
6363
scheme="postgresql+psycopg",
6464
username=self.POSTGRES_USER,
6565
password=self.POSTGRES_PASSWORD,
66-
host=self.POSTGRES_SERVER,
66+
host=self.POSTGRES_HOST,
6767
port=self.POSTGRES_PORT,
6868
path=self.POSTGRES_DB,
6969
)

frontend/src/routes/login.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,10 @@ function Login() {
6464

6565
const onSubmit = (data: FormData) => {
6666
if (loginMutation.isPending) return
67-
loginMutation.mutate(data)
67+
loginMutation.mutate({
68+
email: data.username,
69+
password: data.password,
70+
} as AccessToken)
6871
}
6972

7073
return (

0 commit comments

Comments
 (0)