Skip to content

Commit 15607bd

Browse files
committed
User Management
1 parent 3e89f13 commit 15607bd

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/app/components/common/authenticate/auth.component.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
@let isRegistering = isRegistering$ | async;
22

3+
@if (isProd) {
4+
<div>Use "omel" as username and "test" as password to access the application</div>
5+
}
36
<div class="wrapper">
47
@if (isRegistering) {
58
<div class="register-header">

src/app/components/common/authenticate/auth.component.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import {UserAction} from '../../../store/user/user.actions';
1111
import {DataService} from '../../../service/data/data.service';
1212
import {ToastAction} from '../../../store/toast/toast.action';
1313
import {ToastType} from '../../../obj/bean/ToastBean';
14+
import {environment} from '../../../../environments/environment';
1415

1516
interface AuthModelData {
1617
username: string;
@@ -32,6 +33,7 @@ export class AuthComponent {
3233
private readonly route: ActivatedRoute = inject(ActivatedRoute);
3334
private readonly router = inject(Router);
3435
private readonly store = inject(Store);
36+
protected readonly isProd = environment.production;
3537
protected readonly isRegistering$ = this.route.url.pipe(
3638
map(segments => segments.some(segment => segment.path === 'register'))
3739
)

0 commit comments

Comments
 (0)