-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #59 from 1-system-group/feature/fix_login_api
認証APIの修正
- Loading branch information
Showing
3 changed files
with
40 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// ----------------------------------------------------------------------- | ||
// <copyright file="AuthModel.cs" company="1-system-group"> | ||
// Copyright (c) 1-system-group. All rights reserved. | ||
// </copyright> | ||
// ----------------------------------------------------------------------- | ||
using System.ComponentModel.DataAnnotations; | ||
using Diary_Sample.Common; | ||
using static Diary_Sample.Common.ResultType; | ||
|
||
namespace Diary_Sample.Models | ||
{ | ||
public class AuthModel | ||
{ | ||
// Eメールアドレス | ||
[Required(ErrorMessage = "Eメールは必須です。")] | ||
public string email { get; set; } = string.Empty; | ||
|
||
// パスワード | ||
[Required(ErrorMessage = "パスワードは必須です")] | ||
[DataType(DataType.Password)] | ||
public string password { get; set; } = string.Empty; | ||
|
||
// 端末ID | ||
[Required(ErrorMessage = "端末IDは必須です")] | ||
public string deviceId { get; set; } = string.Empty; | ||
} | ||
} |