-
Notifications
You must be signed in to change notification settings - Fork 33
/
IdentityUser.cs
50 lines (44 loc) · 1.14 KB
/
IdentityUser.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
using Microsoft.AspNet.Identity;
using System;
namespace AspNet.Identity.MySQL
{
/// <summary>
/// Class that implements the ASP.NET Identity
/// IUser interface
/// </summary>
public class IdentityUser : IUser
{
/// <summary>
/// Default constructor
/// </summary>
public IdentityUser()
{
Id = Guid.NewGuid().ToString();
}
/// <summary>
/// Constructor that takes user name as argument
/// </summary>
/// <param name="userName"></param>
public IdentityUser(string userName)
: this()
{
UserName = userName;
}
/// <summary>
/// User ID
/// </summary>
public string Id { get; set; }
/// <summary>
/// User's name
/// </summary>
public string UserName { get; set; }
/// <summary>
/// User's password hash
/// </summary>
public string PasswordHash { get; set; }
/// <summary>
/// User's security stamp
/// </summary>
public string SecurityStamp { get; set; }
}
}