mirror of
				https://github.com/louislam/uptime-kuma.git
				synced 2025-10-31 19:39:20 +08:00 
			
		
		
		
	Update util.ts
This commit is contained in:
		| @@ -127,7 +127,7 @@ export function genSecret(length = 64) { | |||||||
|     let secret = ""; |     let secret = ""; | ||||||
|     const chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"; |     const chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"; | ||||||
|     const charsLength = chars.length; |     const charsLength = chars.length; | ||||||
|     for ( let i = 0; i < 64; i++ ) { |     for ( let i = 0; i < length; i++ ) { | ||||||
|         secret += chars.charAt(getCryptoRandomInt(0, charsLength)); |         secret += chars.charAt(getCryptoRandomInt(0, charsLength)); | ||||||
|     } |     } | ||||||
|     return secret; |     return secret; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user