Reduce length of generated access tokens and session ids

Reduces generated tokens and session ids down to 32 characters (~190 bits of entropy) in length
This commit is contained in:
Nyaaori
2022-09-25 11:46:18 +02:00
parent 66bc41125c
commit b59304a4df

View File

@@ -63,6 +63,6 @@ pub use user_directory::*;
pub use voip::*;
pub const DEVICE_ID_LENGTH: usize = 10;
pub const TOKEN_LENGTH: usize = 256;
pub const SESSION_ID_LENGTH: usize = 256;
pub const TOKEN_LENGTH: usize = 32;
pub const SESSION_ID_LENGTH: usize = 32;
pub const AUTO_GEN_PASSWORD_LENGTH: usize = 15;