mirror of
https://github.com/docmost/docmost.git
synced 2026-05-20 00:14:10 +08:00
less create workspace form fields in cloud (#1265)
* sync * less signup form fields in cloud * min length
This commit is contained in:
@@ -16,6 +16,12 @@ export async function comparePasswordHash(
|
||||
return bcrypt.compare(plainPassword, passwordHash);
|
||||
}
|
||||
|
||||
export function generateRandomSuffixNumbers(length: number) {
|
||||
return Math.random()
|
||||
.toFixed(length)
|
||||
.substring(2, 2 + length);
|
||||
}
|
||||
|
||||
export type RedisConfig = {
|
||||
host: string;
|
||||
port: number;
|
||||
|
||||
Reference in New Issue
Block a user