aboutsummaryrefslogtreecommitdiff
path: root/ufund-ui/src/app/components
diff options
context:
space:
mode:
authorGunther6070 <haydenhartman10@yahoo.com>2025-03-31 13:12:42 -0400
committerGunther6070 <haydenhartman10@yahoo.com>2025-03-31 13:12:42 -0400
commit655f83af9ba59d6153c9916b9a31bfe12680655e (patch)
tree6508f52a52da1b45b257a0042c4c3433a7225838 /ufund-ui/src/app/components
parent5f083f775917c15597b3b70a0eb6a0ce2fda7667 (diff)
downloadJellySolutions-655f83af9ba59d6153c9916b9a31bfe12680655e.tar.gz
JellySolutions-655f83af9ba59d6153c9916b9a31bfe12680655e.tar.bz2
JellySolutions-655f83af9ba59d6153c9916b9a31bfe12680655e.zip
Implemented localStorage cookies to maintain user persistence
Diffstat (limited to 'ufund-ui/src/app/components')
-rw-r--r--ufund-ui/src/app/components/login/login.component.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/ufund-ui/src/app/components/login/login.component.ts b/ufund-ui/src/app/components/login/login.component.ts
index f6a2996..4dcaedd 100644
--- a/ufund-ui/src/app/components/login/login.component.ts
+++ b/ufund-ui/src/app/components/login/login.component.ts
@@ -35,6 +35,8 @@ export class LoginComponent implements OnInit {
this.authService.login(username, password).then(() => {
this.router.navigate([next]);
+ let key = this.authService.getApiKey()
+ localStorage.setItem("credential", JSON.stringify({username: username, key: key}))
}).catch(ex => {
this.statusText.next("Unable to login: " + friendlyHttpStatus[ex.status])
console.log(ex)