Browse Source

Use URL-safe tokens

master
Puck Meerburg 10 months ago
parent
commit
7cca355b34
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/endpoints.rs

+ 1
- 1
src/endpoints.rs View File

@@ -107,7 +107,7 @@ fn build_auth_token<T: EntityStore>(
if as_code {
let mut placeholder = [0; 30];
OsRng::new().unwrap().fill_bytes(&mut placeholder);
let placeholder = base64::encode(&placeholder);
let placeholder = base64::encode_config(&placeholder, base64::URL_SAFE_NO_PAD);

TOKEN_MAP
.lock()

Loading…
Cancel
Save