Permalink
Browse files

Add and manage user accounts

  • Loading branch information...
jkaleta committed Apr 3, 2018
1 parent a2a4920 commit 00079bf6970386071f37e2c3da69362cb6dc8570
Showing with 3,272 additions and 28 deletions.
  1. +10 −5 Data/Data.csproj
  2. +0 −16 Data/DataContext.cs
  3. +30 −0 Data/MicroBankContext.cs
  4. +212 −0 Data/Migrations/00000000000000_CreateIdentitySchema.Designer.cs
  5. +216 −0 Data/Migrations/00000000000000_CreateIdentitySchema.cs
  6. +1 −1 Data/Migrations/20180128232859_Initial.Designer.cs
  7. +1 −1 Data/Migrations/20180128232859_Initial.cs
  8. +196 −2 Data/Migrations/MicroBankContextModelSnapshot.cs
  9. +13 −0 Data/Models/ApplicationUser.cs
  10. +34 −0 WebApp/Controllers/AccountController.cs
  11. +24 −0 WebApp/Extensions/EmailSenderExtensions.cs
  12. +38 −0 WebApp/Extensions/UrlHelperExtensions.cs
  13. +10 −0 WebApp/Pages/Account/AccessDenied.cshtml
  14. +16 −0 WebApp/Pages/Account/AccessDenied.cshtml.cs
  15. +12 −0 WebApp/Pages/Account/ConfirmEmail.cshtml
  16. +43 −0 WebApp/Pages/Account/ConfirmEmail.cshtml.cs
  17. +33 −0 WebApp/Pages/Account/ExternalLogin.cshtml
  18. +133 −0 WebApp/Pages/Account/ExternalLogin.cshtml.cs
  19. +26 −0 WebApp/Pages/Account/ForgotPassword.cshtml
  20. +56 −0 WebApp/Pages/Account/ForgotPassword.cshtml.cs
  21. +10 −0 WebApp/Pages/Account/ForgotPasswordConfirmation.cshtml
  22. +16 −0 WebApp/Pages/Account/ForgotPasswordConfirmation.cshtml.cs
  23. +10 −0 WebApp/Pages/Account/Lockout.cshtml
  24. +16 −0 WebApp/Pages/Account/Lockout.cshtml.cs
  25. +82 −0 WebApp/Pages/Account/Login.cshtml
  26. +100 −0 WebApp/Pages/Account/Login.cshtml.cs
  27. +41 −0 WebApp/Pages/Account/LoginWith2fa.cshtml
  28. +96 −0 WebApp/Pages/Account/LoginWith2fa.cshtml.cs
  29. +29 −0 WebApp/Pages/Account/LoginWithRecoveryCode.cshtml
  30. +89 −0 WebApp/Pages/Account/LoginWithRecoveryCode.cshtml.cs
  31. +35 −0 WebApp/Pages/Account/Manage/ChangePassword.cshtml
  32. +103 −0 WebApp/Pages/Account/Manage/ChangePassword.cshtml.cs
  33. +25 −0 WebApp/Pages/Account/Manage/Disable2fa.cshtml
  34. +62 −0 WebApp/Pages/Account/Manage/Disable2fa.cshtml.cs
  35. +53 −0 WebApp/Pages/Account/Manage/EnableAuthenticator.cshtml
  36. +140 −0 WebApp/Pages/Account/Manage/EnableAuthenticator.cshtml.cs
  37. +52 −0 WebApp/Pages/Account/Manage/ExternalLogins.cshtml
  38. +109 −0 WebApp/Pages/Account/Manage/ExternalLogins.cshtml.cs
  39. +27 −0 WebApp/Pages/Account/Manage/GenerateRecoveryCodes.cshtml
  40. +64 −0 WebApp/Pages/Account/Manage/GenerateRecoveryCodes.cshtml.cs
  41. +45 −0 WebApp/Pages/Account/Manage/Index.cshtml
  42. +129 −0 WebApp/Pages/Account/Manage/Index.cshtml.cs
  43. +34 −0 WebApp/Pages/Account/Manage/ManageNavPages.cs
  44. +23 −0 WebApp/Pages/Account/Manage/ResetAuthenticator.cshtml
  45. +52 −0 WebApp/Pages/Account/Manage/ResetAuthenticator.cshtml.cs
  46. +35 −0 WebApp/Pages/Account/Manage/SetPassword.cshtml
  47. +94 −0 WebApp/Pages/Account/Manage/SetPassword.cshtml.cs
  48. +25 −0 WebApp/Pages/Account/Manage/ShowRecoveryCodes.cshtml
  49. +25 −0 WebApp/Pages/Account/Manage/ShowRecoveryCodes.cshtml.cs
  50. +49 −0 WebApp/Pages/Account/Manage/TwoFactorAuthentication.cshtml
  51. +54 −0 WebApp/Pages/Account/Manage/TwoFactorAuthentication.cshtml.cs
  52. +23 −0 WebApp/Pages/Account/Manage/_Layout.cshtml
  53. +18 −0 WebApp/Pages/Account/Manage/_ManageNav.cshtml
  54. +10 −0 WebApp/Pages/Account/Manage/_StatusMessage.cshtml
  55. +1 −0 WebApp/Pages/Account/Manage/_ViewImports.cshtml
  56. +37 −0 WebApp/Pages/Account/Register.cshtml
  57. +92 −0 WebApp/Pages/Account/Register.cshtml.cs
  58. +37 −0 WebApp/Pages/Account/ResetPassword.cshtml
  59. +88 −0 WebApp/Pages/Account/ResetPassword.cshtml.cs
  60. +10 −0 WebApp/Pages/Account/ResetPasswordConfirmation.cshtml
  61. +16 −0 WebApp/Pages/Account/ResetPasswordConfirmation.cshtml.cs
  62. +10 −0 WebApp/Pages/Account/SignedOut.cshtml
  63. +20 −0 WebApp/Pages/Account/SignedOut.cshtml.cs
  64. +1 −0 WebApp/Pages/Account/_ViewImports.cshtml
  65. +26 −0 WebApp/Pages/_LoginPartial.cshtml
  66. +17 −0 WebApp/Services/EmailSender.cs
  67. +12 −0 WebApp/Services/IEmailSender.cs
  68. +25 −2 WebApp/Startup.cs
  69. +1 −1 WebApp/WebApp.csproj
View
@@ -1,11 +1,16 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<TargetFramework>netcoreapp2.0</TargetFramework>
<UserSecretsId>aspnet-microbank-53CB7055-FFC1-450A-921B-746F6D103DD8</UserSecretsId>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="2.0.1" />
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="2.0.1" />
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="2.0.1" />
<PackageReference Include="Microsoft.AspNetCore.All" Version="2.0.5" />
</ItemGroup>
</Project>
<ItemGroup>
<DotNetCliToolReference Include="Microsoft.EntityFrameworkCore.Tools.DotNet" Version="2.0.1" />
<DotNetCliToolReference Include="Microsoft.Extensions.SecretManager.Tools" Version="2.0.0" />
<DotNetCliToolReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Tools" Version="2.0.2" />
</ItemGroup>
</Project>
View

This file was deleted.

Oops, something went wrong.
View
@@ -0,0 +1,30 @@
using Microsoft.EntityFrameworkCore;
using microbank.Data.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Identity.EntityFrameworkCore;
namespace microbank.Data
{
public class MicroBankContext : IdentityDbContext<ApplicationUser>
{
public MicroBankContext(DbContextOptions options)
: base(options)
{
}
protected override void OnModelCreating(ModelBuilder builder)
{
base.OnModelCreating(builder);
// Customize the ASP.NET Identity model and override the defaults if needed.
// For example, you can rename the ASP.NET Identity table names and more.
// Add your customizations after calling base.OnModelCreating(builder);
}
// public DbSet<BankAccount> BankAccounts { get; set; }
public DbSet<Models.Customer> Customers {get; set;}
}
}

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit 00079bf

Please sign in to comment.