Skip to content

Commit

Permalink
New error-element implementation for admin -> login redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
JohanGrims committed Dec 12, 2024
1 parent b2279e1 commit 87617c1
Show file tree
Hide file tree
Showing 2 changed files with 190 additions and 188 deletions.
6 changes: 1 addition & 5 deletions src/admin/auth/Login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,7 @@ export default function Login() {
signInWithEmailAndPassword(auth, email, password)
.then((userCredential) => {
const user = userCredential.user;
snackbar({
message: `Willkommen, ${user.email}`,
closeable: true,
});
setLoading(false);
window.location.reload();
})
.catch((error) => {
console.error(error);
Expand Down
Loading

0 comments on commit 87617c1

Please sign in to comment.