fixes the cmd prompt on start + api key defaults

This commit is contained in:
litoral05
2026-05-12 14:06:10 +01:00
parent 17364e23d3
commit 7e1eeba970
3 changed files with 51 additions and 9 deletions
+7 -3
View File
@@ -36,6 +36,11 @@ export function LoginScreen({
setError('');
try {
console.log('LOGIN TRY', {
username: username.trim(),
passwordLength: password.length,
});
const response = await loginApi.login(
username.trim(),
password,
@@ -47,13 +52,12 @@ export function LoginScreen({
}
setError('Credenciais inválidas.');
} catch {
setError('Credenciais inválidas.');
} catch (error) {
setError(`Falha no login: ${String(error)}`);
} finally {
setSubmitting(false);
}
}
return (
<div className="relative flex min-h-screen items-center justify-center overflow-hidden bg-ink-950 px-6 text-white">
<div className="pointer-events-none absolute -left-32 top-10 h-96 w-96 rounded-full bg-blue-500/20 blur-3xl" />