Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -107,3 +107,4 @@ _UpgradeReport_Files/
Backup*/
UpgradeLog*.XML
MongoDB.AspNet.Identity.csproj.GhostDoc.xml
.vs/config/applicationhost.config
41 changes: 37 additions & 4 deletions IdentityUser.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System.Collections.Generic;
using System;
using System.Collections.Generic;
using Microsoft.AspNet.Identity;
using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;
Expand Down Expand Up @@ -49,10 +50,42 @@ public class IdentityUser : IUser
/// </summary>
/// <value>The logins.</value>
public virtual List<UserLoginInfo> Logins { get; private set; }
/// <summary>
/// Gets the email
/// </summary>
public string Email { get; set; }
/// <summary>
/// Gets the phone number
/// </summary>
public string PhoneNumber { get; set; }
/// <summary>
/// gets the email confirmed boolean
/// </summary>
public bool EmailConfirmed { get; set; }
/// <summary>
/// gets the phone confirmed boolean
/// </summary>
public bool PhoneNumberConfirmed { get; set; }
/// <summary>
/// gets two factor authentication boolean
/// </summary>
public bool TwoFactorEnabled { get; set; }
/// <summary>
/// gets date time offset
/// </summary>
public DateTimeOffset LockoutEndDateUtc { get; set; }
/// <summary>
/// gets failed counts
/// </summary>
public int AccessFailedCount { get; set; }
/// <summary>
/// gets lockout enabled boolean
/// </summary>
public bool LockoutEnabled { get; set; }

/// <summary>
/// Initializes a new instance of the <see cref="IdentityUser"/> class.
/// </summary>
/// <summary>
/// Initializes a new instance of the <see cref="IdentityUser"/> class.
/// </summary>
public IdentityUser()
{
this.Claims = new List<IdentityUserClaim>();
Expand Down
26 changes: 18 additions & 8 deletions MongoDB.AspNet.Identity.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
<IISExpressWindowsAuthentication />
<IISExpressUseClassicPipelineMode />
<TargetFrameworkProfile />
<UseGlobalApplicationHostFile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
Expand All @@ -41,16 +42,25 @@
<DocumentationFile>bin\MongoDB.AspNet.Identity.XML</DocumentationFile>
</PropertyGroup>
<ItemGroup>
<Reference Include="Microsoft.AspNet.Identity.Core">
<HintPath>packages\Microsoft.AspNet.Identity.Core.1.0.0\lib\net45\Microsoft.AspNet.Identity.Core.dll</HintPath>
<Reference Include="Microsoft.AspNet.Identity.Core, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<HintPath>packages\Microsoft.AspNet.Identity.Core.2.2.1\lib\net45\Microsoft.AspNet.Identity.Core.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="MongoDB.Bson, Version=1.8.3.9, Culture=neutral, PublicKeyToken=f686731cfb9cc103, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>packages\mongocsharpdriver.1.8.3\lib\net35\MongoDB.Bson.dll</HintPath>
<Reference Include="MongoDB.Bson, Version=2.1.1.5, Culture=neutral, processorArchitecture=MSIL">
<HintPath>packages\MongoDB.Bson.2.1.1\lib\net45\MongoDB.Bson.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="MongoDB.Driver, Version=1.8.3.9, Culture=neutral, PublicKeyToken=f686731cfb9cc103, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>packages\mongocsharpdriver.1.8.3\lib\net35\MongoDB.Driver.dll</HintPath>
<Reference Include="MongoDB.Driver, Version=2.1.1.5, Culture=neutral, processorArchitecture=MSIL">
<HintPath>packages\MongoDB.Driver.2.1.1\lib\net45\MongoDB.Driver.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="MongoDB.Driver.Core, Version=2.1.1.5, Culture=neutral, processorArchitecture=MSIL">
<HintPath>packages\MongoDB.Driver.Core.2.1.1\lib\net45\MongoDB.Driver.Core.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="MongoDB.Driver.Legacy, Version=2.1.1.5, Culture=neutral, processorArchitecture=MSIL">
<HintPath>packages\mongocsharpdriver.2.1.1\lib\net45\MongoDB.Driver.Legacy.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="System.ComponentModel.DataAnnotations" />
<Reference Include="System" />
Expand Down
Loading