aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-05-20 11:45:13 +0200
committerAlex Auvolat <alex@adnab.me>2022-05-20 11:45:13 +0200
commitaddaf087abfaa9fd41f75ce0c2181a2df48a972a (patch)
tree895bae8cb4cda0e76c50ae6a88850ef119550095 /src/main.rs
parentf254f3370df1da79552401e54e50987aa59890ca (diff)
downloadaerogramme-addaf087abfaa9fd41f75ce0c2181a2df48a972a.tar.gz
aerogramme-addaf087abfaa9fd41f75ce0c2181a2df48a972a.zip
implement hash_password and verify_password
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index 04c0705..dcdd335 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -222,7 +222,10 @@ fn make_storage_creds(c: StorageCredsArgs) -> StorageCredentials {
fn dump_config(password: &str, creds: &StorageCredentials) {
println!("[login_static.users.<username>]");
- println!("password = \"{}\"", hash_password(password)); //TODO
+ println!(
+ "password = \"{}\"",
+ hash_password(password).expect("unable to hash password")
+ );
println!("aws_access_key_id = \"{}\"", creds.aws_access_key_id);
println!(
"aws_secret_access_key = \"{}\"",