Skip to content

Commit

Permalink
feat: functional login
Browse files Browse the repository at this point in the history
  • Loading branch information
valeriansaliou committed Nov 10, 2024
1 parent b9c1c7b commit 820c83f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/views/start/StartLogin.vue
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,14 @@ export default {
try {
// Login to account
await Store.$account.login(form.jid, form.password);
// Redirect to dashboard
this.$router.push({
name: "app"
});
// Acknowledge login success
BaseAlert.success("Logged in", "Welcome to your Prose dashboard");
} catch (error) {
BaseAlert.error(
"Could not log in",
Expand Down

0 comments on commit 820c83f

Please sign in to comment.