mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-21 06:55:03 +00:00
Add switches to password/generate (#396)
This commit is contained in:
@@ -8,10 +8,19 @@ service Password {
|
||||
rpc Generate(GenerateRequest) returns (GenerateResponse) {}
|
||||
}
|
||||
|
||||
// Generate a strong random password
|
||||
// Generate a strong random password. Use the switches to control which character types are included, defaults to using all of them
|
||||
message GenerateRequest {
|
||||
// password length; defaults to 16 chars
|
||||
// password length; defaults to 8 chars
|
||||
int32 length = 1;
|
||||
// include lowercase letters
|
||||
bool lowercase = 2;
|
||||
// include uppercase letters
|
||||
bool uppercase = 3;
|
||||
// include numbers
|
||||
bool numbers = 4;
|
||||
// include special characters (!@#$%&*)
|
||||
bool special = 5;
|
||||
|
||||
}
|
||||
|
||||
message GenerateResponse {
|
||||
|
||||
Reference in New Issue
Block a user