Improve mock login

This commit is contained in:
2026-03-20 19:26:44 +01:00
parent 111fb9b8d2
commit 267596a969
3 changed files with 92 additions and 8 deletions
@@ -33,11 +33,13 @@
.sr-only Sign in using {{p.name}}
div(*ngIf="local")
.btn-group.dropdown(dropdown)
div(*ngIf="mocks === undefined")
fa-icon([icon]="spinnerIcon" [fixedWidth]="true" [spin]="true")
| Loading mock logins
.btn-group.dropdown(dropdown *ngIf="mocks !== undefined")
button.btn.btn-lg.btn-dark.dropdown-toggle(dropdownToggle)
| Mock login
.dropdown-menu(*dropdownMenu)
//- NOTE: change usernames to ids of accounts you want to use for testing
a.dropdown-item(href="/auth/local?password=x&username=57a3dc6f2f0019a161cdebf6" target="_self") Admin
a.dropdown-item(href="/auth/local?password=x&username=57ae2332a67f4dc52e123e14" target="_self") Test
a.dropdown-item(href="/auth/local?password=x&username=57ae2332a67f4dc52e123e15" target="_self") Other
a.dropdown-item(*ngFor="let a of mocks" [href]="'/auth/local?password=x&username=' + a[0]" target="_self") {{ a[1]}}
a.dropdown-item((click)="createNew()") Create new