diff options
author | mh <mh@immerda.ch> | 2014-06-27 19:22:44 +0200 |
---|---|---|
committer | mh <mh@immerda.ch> | 2014-06-27 19:22:44 +0200 |
commit | 08ac533d2156b666ae6ca68e797992629051315f (patch) | |
tree | 05ccf120e136b3d6d77a8d91f9930f0139b8e54b /lib/trocla/formats/mysql.rb | |
parent | 335773cf82f600f0401dad7492c1de5c098a3d06 (diff) |
make it possible that formats can query back to trocla itself, so they can lookup other 'keys'
Diffstat (limited to 'lib/trocla/formats/mysql.rb')
-rw-r--r-- | lib/trocla/formats/mysql.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/trocla/formats/mysql.rb b/lib/trocla/formats/mysql.rb index 7fbc3a7..a097f95 100644 --- a/lib/trocla/formats/mysql.rb +++ b/lib/trocla/formats/mysql.rb @@ -1,6 +1,6 @@ -class Trocla::Formats::Mysql +class Trocla::Formats::Mysql < Trocla::Formats::Base require 'digest/sha1' def format(plain_password,options={}) "*" + Digest::SHA1.hexdigest(Digest::SHA1.digest(plain_password)).upcase end -end
\ No newline at end of file +end |