From ae43dda0510ba07115c1d217467a9cc9b2858fe4 Mon Sep 17 00:00:00 2001 From: Rick Anderson Date: Thu, 4 Jul 2019 09:04:13 -0600 Subject: [PATCH] fix defaults on Indentity (#13112) --- .../sample/ScaffoldingReadme.txt | 18 ------------------ .../identity-configuration/sample/Startup.cs | 4 ++-- 2 files changed, 2 insertions(+), 20 deletions(-) delete mode 100644 aspnetcore/security/authentication/identity-configuration/sample/ScaffoldingReadme.txt diff --git a/aspnetcore/security/authentication/identity-configuration/sample/ScaffoldingReadme.txt b/aspnetcore/security/authentication/identity-configuration/sample/ScaffoldingReadme.txt deleted file mode 100644 index 980e99687b..0000000000 --- a/aspnetcore/security/authentication/identity-configuration/sample/ScaffoldingReadme.txt +++ /dev/null @@ -1,18 +0,0 @@ -Support for ASP.NET Core Identity was added to your project -- The code for adding Identity to your project was generated under Areas/Identity. - -Configuration of the Identity related services can be found in the Areas/Identity/IdentityHostingStartup.cs file. - - -The generated UI requires support for static files. To add static files to your app: -1. Call app.UseStaticFiles() from your Configure method - -To use ASP.NET Core Identity you also need to enable authentication. To authentication to your app: -1. Call app.UseAuthentication() from your Configure method (after static files) - -The generated UI requires MVC. To add MVC to your app: -1. Call services.AddMvc() from your ConfigureServices method -2. Call app.UseMvc() from your Configure method (after authentication) - -Apps that use ASP.NET Core Identity should also use HTTPS. To enable HTTPS see https://go.microsoft.com/fwlink/?linkid=848054. - diff --git a/aspnetcore/security/authentication/identity-configuration/sample/Startup.cs b/aspnetcore/security/authentication/identity-configuration/sample/Startup.cs index 118ad8cc96..45b5447479 100644 --- a/aspnetcore/security/authentication/identity-configuration/sample/Startup.cs +++ b/aspnetcore/security/authentication/identity-configuration/sample/Startup.cs @@ -61,7 +61,7 @@ namespace RPauth services.Configure(options => { // Default SignIn settings. - options.SignIn.RequireConfirmedEmail = true; + options.SignIn.RequireConfirmedEmail = false; options.SignIn.RequireConfirmedPhoneNumber = false; }); #endregion @@ -72,7 +72,7 @@ namespace RPauth // Default User settings. options.User.AllowedUserNameCharacters = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-._@+"; - options.User.RequireUniqueEmail = true; + options.User.RequireUniqueEmail = false; }); #endregion