mirror of
https://codeberg.org/timelimit/timelimit-server.git
synced 2026-08-31 19:03:45 +02:00
Add support for encrypted second password hashes
This commit is contained in:
@@ -46,5 +46,8 @@ export const assertIdWithinFamily = (id: string) => {
|
||||
}
|
||||
|
||||
export const generateVersionId = randomString.bind(null, defaultAlphabet, 4)
|
||||
|
||||
export const isVersionId = (id: string) => id.length === 4 && /^[a-zA-Z0-9]+$/.test(id)
|
||||
|
||||
export const generateFamilyId = randomString.bind(null, defaultAlphabet, 10)
|
||||
export const generatePurchaseId = randomString.bind(null, defaultAlphabet, 10)
|
||||
|
||||
Reference in New Issue
Block a user