enforcing username profanity and blacklist policy

This commit is contained in:
realaravinth
2021-06-01 17:35:48 +05:30
parent 9e70f8f756
commit 2925f82aa5

View File

@@ -45,9 +45,9 @@ impl Data {
.expect("Unable to form database pool"); .expect("Unable to form database pool");
let creds = ConfigBuilder::default() let creds = ConfigBuilder::default()
.username_case_mapped(false) .username_case_mapped(true)
.profanity(true) .profanity(true)
.blacklist(false) .blacklist(true)
.password_policy(PasswordPolicy::default()) .password_policy(PasswordPolicy::default())
.build() .build()
.unwrap(); .unwrap();