f99d61f767
- @model 선언에 정확한 네임스페이스 지정 - Snackbar 호출 수정 (MudBlazor 6.x 호환) - GzipCompressionProvider import 추가 - Dashboard Color.TextSecondary 제거 - Admin App.razor MUI CSS 제거 Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
50 lines
1.7 KiB
Plaintext
50 lines
1.7 KiB
Plaintext
@page "/login"
|
|
@using System.ComponentModel.DataAnnotations
|
|
@using Microsoft.AspNetCore.Authentication
|
|
@using Microsoft.AspNetCore.Authentication.Cookies
|
|
@layout TaxBaik.Admin.Components.Layout.BlankLayout
|
|
@attribute [AllowAnonymous]
|
|
|
|
<PageTitle>로그인</PageTitle>
|
|
|
|
<MudContainer MaxWidth="MaxWidth.Small" Class="d-flex align-center justify-center" Style="min-height: 100vh;">
|
|
<MudPaper Class="pa-8" Elevation="3" Style="width: 100%; max-width: 400px;">
|
|
<MudText Typo="Typo.h4" Class="mb-6 text-center">관리자 로그인</MudText>
|
|
|
|
<MudForm @ref="form" @bind-IsValid="@isFormValid">
|
|
<MudTextField @bind-Value="model.Username" Label="사용자명"
|
|
Variant="Variant.Outlined" Required="true" Class="mb-4" />
|
|
|
|
<MudTextField @bind-Value="model.Password" Label="비밀번호" InputType="InputType.Password"
|
|
Variant="Variant.Outlined" Required="true" Class="mb-4" />
|
|
|
|
@if (!string.IsNullOrEmpty(errorMessage))
|
|
{
|
|
<MudAlert Severity="Severity.Error" Class="mb-4">@errorMessage</MudAlert>
|
|
}
|
|
|
|
<MudButton Variant="Variant.Filled" Color="Color.Primary" FullWidth="true"
|
|
Size="Size.Large" OnClick="HandleLogin">로그인</MudButton>
|
|
</MudForm>
|
|
</MudPaper>
|
|
</MudContainer>
|
|
|
|
@code {
|
|
private MudForm form;
|
|
private bool isFormValid = false;
|
|
private string errorMessage = "";
|
|
|
|
private LoginModel model = new();
|
|
|
|
private async Task HandleLogin()
|
|
{
|
|
errorMessage = "로그인 기능은 준비 중입니다.";
|
|
}
|
|
|
|
private class LoginModel
|
|
{
|
|
public string Username { get; set; }
|
|
public string Password { get; set; }
|
|
}
|
|
}
|