diff options
author | duritong <peter.meier+github@immerda.ch> | 2013-06-27 09:47:50 -0700 |
---|---|---|
committer | duritong <peter.meier+github@immerda.ch> | 2013-06-27 09:47:50 -0700 |
commit | 5f73eecb05bbf5a73d62e918593a44bc0354ee86 (patch) | |
tree | 0178fc4568de1a1fe87ad04bb73ef3b60d63af26 | |
parent | 1a2f8aed3f55a63ff143302a3a42ca7997e51db0 (diff) | |
parent | 45ab02b8e3b03c9f2da704786190b420ef726cec (diff) |
Merge pull request #8 from yath/master
[BUG] Store hashed password supplied via 'set' instead of plaintext
-rwxr-xr-x | bin/trocla | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -64,10 +64,11 @@ def set(options) else password = options.delete(:password) || STDIN.read.chomp end + format = options.delete(:trocla_format) Trocla.new(options.delete(:config_file)).set_password( options.delete(:trocla_key), - options.delete(:trocla_format), - password + format, + Trocla::Formats[format].format(password, options.delete(:other_options).shift.to_s) ) "" end |