File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed
src/app/components/common/authenticate Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change 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 ">
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ import {UserAction} from '../../../store/user/user.actions';
1111import { DataService } from '../../../service/data/data.service' ;
1212import { ToastAction } from '../../../store/toast/toast.action' ;
1313import { ToastType } from '../../../obj/bean/ToastBean' ;
14+ import { environment } from '../../../../environments/environment' ;
1415
1516interface 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 )
You can’t perform that action at this time.
0 commit comments