Commit f56b0f54 authored by Sergey Leontyev's avatar Sergey Leontyev
Browse files

replace MD5 with SHA1

parent 38e0a187
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -18,7 +18,7 @@ class FnordMetric::Dashboard

  def token
    token = title.to_s.gsub(/[\W]/, '')
    token = Digest::MD5.hexdigest(title.to_s) if token.empty?
    token = Digest::SHA1.hexdigest(title.to_s) if token.empty?
    token
  end

+1 −1
Original line number Diff line number Diff line
@@ -18,7 +18,7 @@ class FnordMetric::Widget

  def token
    token = title.to_s.gsub(/[\W]/, '').downcase
    token = Digest::MD5.hexdigest(title.to_s) if token.empty?
    token = Digest::SHA1.hexdigest(title.to_s) if token.empty?
    token
  end