src/api2/types.rs: also define PASSWORD_FORMAT and use it correctly
This commit is contained in:
@ -15,7 +15,7 @@ lazy_static! {
|
||||
}
|
||||
|
||||
pub const REMOTE_PASSWORD_SCHEMA: Schema = StringSchema::new("Password or auth token for remote host.")
|
||||
.format(&PASSWORD_REGEX)
|
||||
.format(&PASSWORD_FORMAT)
|
||||
.min_length(1)
|
||||
.max_length(1024)
|
||||
.schema();
|
||||
|
Reference in New Issue
Block a user