Change Password Complexity in ASP.NET MVC (NOT CORE)

Bryan Valencia 166 Reputation points
2023-08-14T21:36:51.1033333+00:00

This is frustrating. And all the web searches I have done lead to code examples that absolutely do not work (i.e. set properties that aren't there, go to a screen that doesn't exist, etc.).

I have an app I am going to deploy in my own house.

Here's the particulars:

  • Microsoft Visual Studio Community 2022 (64-bit) - Current Version 17.6.5
  • ASP.NET Web Application (.NET Framework)
  • .NET Framework 4.8.1
  • SQL Server Web (for authentication DB)

I went to create a user, and the password complexity settings are way too high for this simple little app.

In other words, it wants letters, numbers, symbols, etc. that I just DON'T NEED.

Please do not lecture me about long, complex passwords. This will not even be online outside my house.

So there USED TO BE a file somewhere in the project (years ago) where you could just set all that stuff. Now, I think it's getting it from a Machine.config file somewhere, but I want to explicitly set it in my project (not ruin the complexity for my other projects).

I have seen a TON of answers online that advise me to add a bunch of stuff to my web.config in the <system.web> section, but those answers must've been from a darker time, because it was all red squigglies and compile errors.

Even the MS site has pages and pages about CORE, but seemingly nothing about ASP.NET.

I'm not switching to core. I hate linux and have no plans to use it.

Microsoft Security | Microsoft Identity Manager
Developer technologies | ASP.NET Core | Other
0 comments No comments

1 answer

Sort by: Newest
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.