Files
start-os/web/projects/ui/src/app/routes/login/login.component.html
2026-03-25 13:31:53 -06:00

27 lines
831 B
HTML

@if (config.isSecureContext()) {
<!-- Secure context -->
<div tuiCardLarge class="card">
<img alt="StartOS Icon" class="logo" src="assets/img/icon.png" />
<h1 class="header">{{ 'Login to StartOS' | i18n }}</h1>
<form (submit)="submit()">
<tui-textfield iconStart="@tui.key">
<label tuiLabel>{{ 'Password' | i18n }}</label>
<input
tuiAutoFocus
tuiInput
type="password"
[ngModelOptions]="{ standalone: true }"
[(ngModel)]="password"
(ngModelChange)="error = null"
/>
<tui-icon tuiPassword />
</tui-textfield>
<tui-error class="error" [error]="error || null" />
<button tuiButton class="button">{{ 'Login' | i18n }}</button>
</form>
</div>
} @else {
<!-- Insecure context -->
<ca-wizard />
}