Skip to content

Commit

Permalink
Mock response values for password strength and generators (#257)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hinton authored Sep 28, 2023
1 parent 32c98bb commit 6859c5b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions crates/bitwarden/src/auth/password.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ pub(super) fn password_strength(
_email: String,
_additional_inputs: Vec<String>,
) -> u8 {
todo!()
2
}

pub(super) fn satisfies_policy(
_password: String,
_strength: u8,
_policy: &MasterPasswordPolicyOptions,
) -> bool {
todo!()
true
}

#[derive(Debug, JsonSchema)]
Expand Down
4 changes: 2 additions & 2 deletions crates/bitwarden/src/tool/generators/password.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ pub struct PassphraseGeneratorRequest {
}

pub(super) fn password(_input: PasswordGeneratorRequest) -> Result<String> {
todo!()
Ok("pa11w0rd".to_string())
}

pub(super) fn passphrase(_input: PassphraseGeneratorRequest) -> Result<String> {
todo!()
Ok("correct-horse-battery-staple".to_string())
}

0 comments on commit 6859c5b

Please sign in to comment.