Skip to content

Commit

Permalink
Remove special chars from pw gen.
Browse files Browse the repository at this point in the history
Apparently some java libs dont handle this properly
  • Loading branch information
Threated committed Nov 28, 2023
1 parent 9115447 commit a85c627
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion central/src/keycloak.rs
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ fn generate_secret() -> String {
use rand::Rng;
const CHARSET: &[u8] = b"ABCDEFGHIJKLMNOPQRSTUVWXYZ\
abcdefghijklmnopqrstuvwxyz\
0123456789)(*&^%$#@!~";
0123456789";
const PASSWORD_LEN: usize = 30;
let mut rng = rand::thread_rng();

Expand Down

0 comments on commit a85c627

Please sign in to comment.