mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2026-07-14 23:07:01 +10:00
fix: username not allowing hyphens (#2558)
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user