1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-05 00:43:53 +00:00

update webdav secret

add WEBDAV_SECRET_MIN_LENGTH and WEBDAV_SECRET_STRENGTH_LEVEL
This commit is contained in:
lian
2022-02-11 13:48:18 +08:00
parent 1500afb2ff
commit 7ff103f69c
7 changed files with 55 additions and 12 deletions

View File

@@ -1327,7 +1327,7 @@ export const Utils = {
// 91~96[~`
// 97~122a~z
// 123~127{~
for (var i = 0; i <= length-4; i++) {
for (var i = 0; i < length-4; i++) {
var num = Math.floor((Math.random() * (127-33)) + 33);
password += String.fromCharCode(num);
}