mirror of
https://github.com/kanidm/kanidm.git
synced 2025-02-23 20:47:01 +01:00
Allow one-character usernames (#1941)
This commit is contained in:
parent
498be4f08a
commit
054b580fe6
|
@ -53,7 +53,7 @@ lazy_static! {
|
||||||
/// Only lowercase+numbers, with limited chars.
|
/// Only lowercase+numbers, with limited chars.
|
||||||
pub static ref INAME_RE: Regex = {
|
pub static ref INAME_RE: Regex = {
|
||||||
#[allow(clippy::expect_used)]
|
#[allow(clippy::expect_used)]
|
||||||
Regex::new("^[a-z][a-z0-9-_\\.]+$").expect("Invalid Iname regex found")
|
Regex::new("^[a-z][a-z0-9-_\\.]*$").expect("Invalid Iname regex found")
|
||||||
};
|
};
|
||||||
|
|
||||||
pub static ref EXTRACT_VAL_DN: Regex = {
|
pub static ref EXTRACT_VAL_DN: Regex = {
|
||||||
|
|
Loading…
Reference in a new issue