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
merge-requests/425/head
Nyaaori 2 years ago
parent 66bc41125c
commit b59304a4df
No known key found for this signature in database
GPG Key ID: E7819C3ED4D1F82E

@ -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;

Loading…
Cancel
Save