]> juplo.de Git - demos/angular/stored-login/log
demos/angular/stored-login
6 weeks agofix: `auth.service` reacted inconsistently to `username` changes master
Kai Moritz [Tue, 16 Sep 2025 18:51:40 +0000 (20:51 +0200)]
fix: `auth.service` reacted inconsistently to `username` changes

* The subscription for `error` is not required, because the subscription for
  `username` is also triggered, when the username is reset after an error.
* The `login` function must not manipulate the local variable `username`
  at all.
* The separate logic in the app-components's init-hook, that redirects
  to the login page, when the user is not yet known, is no longer
  necessary, since the routing can also be triggered in the subscription
  for `username`.

6 weeks agofeature: persist `username` to and rehydrate it from local-storage
Kai Moritz [Mon, 15 Sep 2025 21:45:44 +0000 (23:45 +0200)]
feature: persist `username` to and rehydrate it from local-storage

6 weeks agorefactor: renamed `token` to `username`
Kai Moritz [Mon, 15 Sep 2025 21:08:30 +0000 (23:08 +0200)]
refactor: renamed `token` to `username`

6 weeks agofix: lifecycle-hooks like `ngOnInit()` only work for components/directives
Kai Moritz [Mon, 15 Sep 2025 21:01:33 +0000 (23:01 +0200)]
fix: lifecycle-hooks like `ngOnInit()` only work for components/directives

6 weeks agorefacotr: using `undefined` instead of `null` in all places
Kai Moritz [Mon, 15 Sep 2025 20:52:49 +0000 (22:52 +0200)]
refacotr: using `undefined` instead of `null` in all places

6 weeks agohome component shows the logged in user
Kai Moritz [Mon, 15 Sep 2025 20:39:06 +0000 (22:39 +0200)]
home component shows the logged in user

6 weeks agoredirect to home on successful login
Kai Moritz [Mon, 15 Sep 2025 20:01:29 +0000 (22:01 +0200)]
redirect to home on successful login

6 weeks agofix: `token` / `error` are cleared correcly on error / success
Kai Moritz [Mon, 15 Sep 2025 19:33:38 +0000 (21:33 +0200)]
fix: `token` / `error` are cleared correcly on error / success

* also added a delay to make the disabling of the form visible

6 weeks agorefactored login component to use reactive forms
Kai Moritz [Tue, 9 Sep 2025 16:32:53 +0000 (18:32 +0200)]
refactored login component to use reactive forms

6 weeks agoimplemented a faked authentication, that fails in 30%
Kai Moritz [Mon, 15 Sep 2025 18:53:06 +0000 (20:53 +0200)]
implemented a faked authentication, that fails in 30%

6 weeks agoauth service asserts redirect to `login`, if the user is not yet set
Kai Moritz [Sun, 7 Sep 2025 00:26:33 +0000 (02:26 +0200)]
auth service asserts redirect to `login`, if the user is not yet set

6 weeks agofixed the login component (added missing parts and adjusted copied code)
Kai Moritz [Sat, 6 Sep 2025 12:03:46 +0000 (14:03 +0200)]
fixed the login component (added missing parts and adjusted copied code)

6 weeks agoadapted and refined the implementation of the component
Kai Moritz [Sat, 30 Aug 2025 09:19:17 +0000 (11:19 +0200)]
adapted and refined the implementation of the component

- Adapted the implementation to the project structure.
- Adhered to best practices (`inject()` and `onNgInit()`).
- Moved the HTML code in a separate file.

6 weeks agoadopted the implementation of the article for the component
Kai Moritz [Sun, 29 Jun 2025 13:53:01 +0000 (15:53 +0200)]
adopted the implementation of the article for the component

link: https://medium.com/@tranan.aptech/building-a-secure-login-system-with-angular-and-ngrx-a-step-by-step-guide-b1987cdd5626[article
6 weeks agogenerated component `login` with `ng generate component login`
Kai Moritz [Sun, 29 Jun 2025 13:45:32 +0000 (15:45 +0200)]
generated component `login` with `ng generate component login`

6 weeks agoadded the login-implementation from the article
Kai Moritz [Sun, 29 Jun 2025 11:51:49 +0000 (13:51 +0200)]
added the login-implementation from the article

link: https://medium.com/@tranan.aptech/building-a-secure-login-system-with-angular-and-ngrx-a-step-by-step-guide-b1987cdd5626[article
6 weeks agoadded `@ngrx/effects`
Kai Moritz [Sun, 29 Jun 2025 11:50:28 +0000 (13:50 +0200)]
added `@ngrx/effects`

6 weeks agoadded `@ngrx/store`
Kai Moritz [Sun, 29 Jun 2025 11:40:40 +0000 (13:40 +0200)]
added `@ngrx/store`

6 weeks agointroduced a home-component and added routing
Kai Moritz [Sat, 6 Sep 2025 12:03:46 +0000 (14:03 +0200)]
introduced a home-component and added routing

4 months agoinitial commit
Kai Moritz [Sun, 29 Jun 2025 11:38:43 +0000 (13:38 +0200)]
initial commit