We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4870fb4 commit ea5b6abCopy full SHA for ea5b6ab
src/app/login/page.jsx
@@ -22,10 +22,10 @@ export default function LoginPage() {
22
23
try {
24
await signInWithEmailAndPassword(auth, email, password);
25
- router.push("/crypt-webapp/dashboard");
+ router.push("/dashboard");
26
} catch (err) {
27
- setError("Failed to sign in. Please check your credentials.");
28
- console.error(err);
+ console.error("Login error:", err);
+ setError(err.message || "Failed to sign in. Please check your credentials.");
29
}
30
31
setLoading(false);
@@ -88,7 +88,7 @@ export default function LoginPage() {
88
89
<div className="text-center">
90
<Link
91
- href="/crypt-webapp/register"
+ href="/register"
92
className="font-medium text-blue-400 hover:text-blue-500"
93
>
94
Don't have an account? Register here
0 commit comments