1
0
Fork 0

Drop ID length to 12

Might be a better balance between sharability and security.
upload-progress
Ambrose Chua 2021-05-24 02:28:50 +08:00 committed by GitHub
parent 0919c6b832
commit dc6d24d3be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -138,7 +138,7 @@ func handleCreateForm(w http.ResponseWriter, req *http.Request) {
return
}
id := gonanoid.MustGenerate(idAlphabet, 20)
id := gonanoid.MustGenerate(idAlphabet, 12)
err = setCredential(id, cred, expires)
if err != nil {