aboutsummaryrefslogtreecommitdiff
path: root/ufund-ui/src/app/components/login/login.component.ts
diff options
context:
space:
mode:
authorsowgro <tpoke.ferrari@gmail.com>2025-03-06 21:41:39 -0500
committersowgro <tpoke.ferrari@gmail.com>2025-03-06 21:41:39 -0500
commitbb9ce55cb5b55a6aaed2399e39a01d68f2491ce3 (patch)
tree7df43079fa8d3e5c7b34c5ab13389018c1216078 /ufund-ui/src/app/components/login/login.component.ts
parenteb4edcc7e7e4f9a6a59bed6d3952486f179fc445 (diff)
downloadJellySolutions-bb9ce55cb5b55a6aaed2399e39a01d68f2491ce3.tar.gz
JellySolutions-bb9ce55cb5b55a6aaed2399e39a01d68f2491ce3.tar.bz2
JellySolutions-bb9ce55cb5b55a6aaed2399e39a01d68f2491ce3.zip
Push current changes (working on documentation and tests)
Diffstat (limited to '')
-rw-r--r--ufund-ui/src/app/components/login/login.component.ts8
1 files changed, 6 insertions, 2 deletions
diff --git a/ufund-ui/src/app/components/login/login.component.ts b/ufund-ui/src/app/components/login/login.component.ts
index 9a4eb0f..50dd018 100644
--- a/ufund-ui/src/app/components/login/login.component.ts
+++ b/ufund-ui/src/app/components/login/login.component.ts
@@ -1,5 +1,6 @@
import { Component } from '@angular/core'
import {UsersService} from '../../services/users.service';
+import {Router} from '@angular/router';
@Component({
selector: 'app-login',
@@ -9,7 +10,8 @@ import {UsersService} from '../../services/users.service';
})
export class LoginComponent {
constructor(
- protected usersService: UsersService
+ protected usersService: UsersService,
+ private router: Router
) {}
login(username: string | null, password: string | null) {
@@ -18,6 +20,8 @@ export class LoginComponent {
return;
}
- this.usersService.login(username, password)
+ this.usersService.login(username, password).then(() => {
+ this.router.navigate(['/dashboard']);
+ })
}
}