-
Notifications
You must be signed in to change notification settings - Fork 0
/
IdentityUser.cs
58 lines (48 loc) · 1.32 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
51
52
53
54
55
56
57
58
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; }
public int ClientId { get; set; }
public int userid { get; set; }
public string pw_reset_key { get; set; }
public DateTime? pw_reset_expiry { get; set; }
}
}