37 lines
1.4 KiB
Plaintext
37 lines
1.4 KiB
Plaintext
@page "/login"
|
|
@layout LoginLayout
|
|
@using Microsoft.AspNetCore.Authorization
|
|
@attribute [AllowAnonymous]
|
|
|
|
<div class="d-flex align-items-center justify-content-center min-vh-100">
|
|
<div class="card shadow-sm" style="max-width: 400px; width: 100%;">
|
|
<div class="card-body p-4">
|
|
<h4 class="card-title mb-4 text-center">ScadaBridge</h4>
|
|
|
|
@if (!string.IsNullOrEmpty(ErrorMessage))
|
|
{
|
|
<div class="alert alert-danger py-2" role="alert">@ErrorMessage</div>
|
|
}
|
|
|
|
<form method="post" action="/auth/login" data-enhance="false">
|
|
<div class="mb-3">
|
|
<label for="username" class="form-label">Username</label>
|
|
<input type="text" class="form-control" id="username" name="username"
|
|
required autocomplete="username" autofocus />
|
|
</div>
|
|
<div class="mb-3">
|
|
<label for="password" class="form-label">Password</label>
|
|
<input type="password" class="form-control" id="password" name="password"
|
|
required autocomplete="current-password" />
|
|
</div>
|
|
<button type="submit" class="btn btn-primary w-100">Sign In</button>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
@code {
|
|
[SupplyParameterFromQuery(Name = "error")]
|
|
public string? ErrorMessage { get; set; }
|
|
}
|