File perms

This commit is contained in:
Kim Ravn Hansen
2025-10-15 12:28:14 +02:00
parent e12dfd0981
commit 59d73955d0
21 changed files with 202 additions and 111 deletions

0
utils/crackdown.js Normal file → Executable file
View File

2
utils/security.js Normal file → Executable file
View File

@@ -54,5 +54,5 @@ export function isUsernameSane(candidate) {
export function isPasswordSane(candidate) {
// We know the password must adhere to one of our client-side-hashed crypto schemes,
// so we can be fairly strict with the allowed passwords
return Config.passwordSanityRegex.test(candidate);
return Config.passwordHashSanityRegex.test(candidate);
}

0
utils/tui.js Normal file → Executable file
View File