Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Password policy improvements #589

Merged
merged 10 commits into from
Dec 23, 2024

Conversation

ashleysmithTTD
Copy link
Contributor

@ashleysmithTTD ashleysmithTTD commented Dec 20, 2024

What Changed:

  • Remove list of password requirements
  • Add password blacklist
  • Remove text for "active your account"
expiredpassword

@@ -45,7 +45,8 @@
<div class="centralize-content">
<#-- App-initiated actions should not see warning messages about the need to complete the action -->
<#-- during login. -->
<#if displayMessage && message?has_content && (message.type != 'warning' || !isAppInitiatedAction??)>
<br />
<#if displayMessage && message?has_content && message.type != 'warning' && !isAppInitiatedAction??>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just taking out the parentheses fixed the logic here and no longer shows the "activate your account" message but still shows the error messages if someone inputs the wrong password


if (LoggedInUser?.user?.participants!.length === 0) {
return <ErrorView message='You do not have access to any participants.' />;
}
if (location.pathname !== '/account/create' && LoggedInUser && !participant) {
if (LoggedInUser && !participant) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this account/create page does not exist anymore and should be removed. randomly found this when testing stuff


function loadBlacklist() {
// txt file of common passwords recommended to blacklist by NIST
fetch('https://raw.githubusercontent.com/danielmiessler/SecLists/master/Passwords/Common-Credentials/10-million-password-list-top-1000000.txt')
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pulling from this file, but we can also store the txt file in our code if that makes sense too. i went with this option because i didnt want to take up space in the code for a huge file, but it would be an issue if this URL changes

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't love relying on a 3rd party to be up in order for our blacklist to work. You can just save the file locally and load it from there, too.

@ashleysmithTTD ashleysmithTTD merged commit 16841a5 into main Dec 23, 2024
3 checks passed
@ashleysmithTTD ashleysmithTTD deleted the ans-UID2-4615-passsword-policy-improvements branch December 23, 2024 20:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants