You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
557 B
22 lines
557 B
using Microsoft.AspNetCore.Mvc;
|
|
using System.ComponentModel;
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace TeacherExt.Models
|
|
{
|
|
public class LoginModel
|
|
{
|
|
[Display(Name = "用户名")]
|
|
[Required]
|
|
public string UserName { get; set; }
|
|
|
|
[Display(Name = "密码")]
|
|
//[Required(ErrorMessage = "必填项")]
|
|
[DataType(DataType.Password)]
|
|
public string Password { get; set; }
|
|
|
|
[Display(Name = "记住我")]
|
|
[HiddenInput]
|
|
public bool RememberMe { get; set; }
|
|
}
|
|
} |