Use 32 character session_id to match Discord's session_id length
This commit is contained in:
parent
374a8695f7
commit
b2cff6d4c0
1 changed files with 1 additions and 1 deletions
|
@ -236,7 +236,7 @@ async fn handle_conn(peer: SocketAddr, stream: TcpStream, redis_client: Client,
|
||||||
|
|
||||||
let session_id: String = rand::thread_rng()
|
let session_id: String = rand::thread_rng()
|
||||||
.sample_iter(&Alphanumeric)
|
.sample_iter(&Alphanumeric)
|
||||||
.take(64)
|
.take(32)
|
||||||
.map(char::from)
|
.map(char::from)
|
||||||
.collect();
|
.collect();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue