Skip to content

A one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!

fix: username not allowing hyphens (#2558)

Divyanshu Patil06d54a90607b
diff --git a/src/integrations/auth/config.ts b/src/integrations/auth/config.ts
index 204542827..9bb11af10 100644
--- a/src/integrations/auth/config.ts
+++ b/src/integrations/auth/config.ts
@@ -188,6 +188,7 @@ const getAuthConfig = () => {
usernameNormalization: (value) => toUsername(value),
displayUsernameNormalization: (value) => toUsername(value),
validationOrder: { username: "post-normalization", displayUsername: "post-normalization" },
+ usernameValidator:(username)=> /^[a-z0-9._-]+$/.test(username)
}),
twoFactor({
issuer: "Reactive Resume",