better-auth-studio 1.0.47 → 1.0.48
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/routes.d.ts.map +1 -1
- package/dist/routes.js +3 -12
- package/dist/routes.js.map +1 -1
- package/package.json +1 -1
- package/public/assets/{main-sl346P7x.js → main-B15fp6rt.js} +164 -95
- package/public/index.html +1 -1
package/dist/routes.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../src/routes.ts"],"names":[],"mappings":"AAOA,OAAO,EAA+B,MAAM,EAAE,MAAM,SAAS,CAAC;AAS9D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AA8D9C,wBAAsB,oBAAoB,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,CA8I/E;AAwBD,wBAAgB,YAAY,CAC1B,UAAU,EAAE,UAAU,EACtB,UAAU,CAAC,EAAE,MAAM,EACnB,SAAS,CAAC,EAAE,MAAM,GACjB,MAAM,
|
|
1
|
+
{"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../src/routes.ts"],"names":[],"mappings":"AAOA,OAAO,EAA+B,MAAM,EAAE,MAAM,SAAS,CAAC;AAS9D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AA8D9C,wBAAsB,oBAAoB,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,CA8I/E;AAwBD,wBAAgB,YAAY,CAC1B,UAAU,EAAE,UAAU,EACtB,UAAU,CAAC,EAAE,MAAM,EACnB,SAAS,CAAC,EAAE,MAAM,GACjB,MAAM,CA8uJR"}
|
package/dist/routes.js
CHANGED
|
@@ -4424,7 +4424,7 @@ export function createRoutes(authConfig, configPath, geoDbPath) {
|
|
|
4424
4424
|
if (hasNumber)
|
|
4425
4425
|
score += 0.5;
|
|
4426
4426
|
// Special character check
|
|
4427
|
-
const hasSpecialChar = /[!@#$%^&*()_
|
|
4427
|
+
const hasSpecialChar = /[!@#$%^&*()_+\-=[\]{};':"\\|,.<>/?]/.test(password);
|
|
4428
4428
|
checks.push({
|
|
4429
4429
|
name: 'Special Character',
|
|
4430
4430
|
passed: hasSpecialChar,
|
|
@@ -4433,14 +4433,7 @@ export function createRoutes(authConfig, configPath, geoDbPath) {
|
|
|
4433
4433
|
if (hasSpecialChar)
|
|
4434
4434
|
score += 0.5;
|
|
4435
4435
|
// Common patterns check
|
|
4436
|
-
const commonPatterns = [
|
|
4437
|
-
/12345/,
|
|
4438
|
-
/password/i,
|
|
4439
|
-
/qwerty/i,
|
|
4440
|
-
/abc123/i,
|
|
4441
|
-
/admin/i,
|
|
4442
|
-
/letmein/i,
|
|
4443
|
-
];
|
|
4436
|
+
const commonPatterns = [/12345/, /password/i, /qwerty/i, /abc123/i, /admin/i, /letmein/i];
|
|
4444
4437
|
const hasCommonPattern = commonPatterns.some((pattern) => pattern.test(password));
|
|
4445
4438
|
checks.push({
|
|
4446
4439
|
name: 'Common Pattern',
|
|
@@ -4457,9 +4450,7 @@ export function createRoutes(authConfig, configPath, geoDbPath) {
|
|
|
4457
4450
|
checks.push({
|
|
4458
4451
|
name: 'Character Variety',
|
|
4459
4452
|
passed: entropyCheck,
|
|
4460
|
-
message: entropyCheck
|
|
4461
|
-
? 'Good character variety'
|
|
4462
|
-
: 'Low character variety (repetitive)',
|
|
4453
|
+
message: entropyCheck ? 'Good character variety' : 'Low character variety (repetitive)',
|
|
4463
4454
|
});
|
|
4464
4455
|
if (entropyCheck)
|
|
4465
4456
|
score += 0.5;
|