Skip to content

Commit

Permalink
B64 encode params
Browse files Browse the repository at this point in the history
  • Loading branch information
BuildTools committed Nov 12, 2023
1 parent da7b0b4 commit 0958ea0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/heckbot/cogs/picker.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import csv
import os
import random
from base64 import b64encode
from datetime import datetime
from datetime import timedelta
from pathlib import Path
Expand Down Expand Up @@ -95,8 +96,8 @@ def get_pick_link(user_name: str) -> str:
).isoformat()
token, iv = encrypt(user_name, expiry)
return (PICK_SERVER_URL +
f'/form?token={quote_from_bytes(token)}'
f'&iv={quote_from_bytes(iv)}')
f'/form?token={quote(b64encode(token))}'
f'&iv={quote(b64encode(iv))}')


class Picker(commands.Cog):
Expand Down

0 comments on commit 0958ea0

Please sign in to comment.