summaryrefslogtreecommitdiff
path: root/app/helpers
diff options
context:
space:
mode:
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/application_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index e147ce77..f8922ed7 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -18,7 +18,7 @@ module ApplicationHelper
end
def disqus_auth(user = current_user)
- data = { id: user.id, username: user.email, email: user.email }.to_json
+ data = { id: user.id, username: user.name, email: user.email }.to_json
message = Base64.encode64(data).gsub("\n", "")
timestamp = Time.now.to_i
signature = OpenSSL::HMAC.hexdigest('sha1', ENV['DISQUS_SECRET_KEY'], "#{message} #{timestamp}")