From 1bd9dd6785fd8f8411efc445c479740ee1d01a22 Mon Sep 17 00:00:00 2001 From: Alex Kotov Date: Fri, 30 Nov 2018 01:31:58 +0500 Subject: [PATCH] Configure Devise pepper --- config/credentials.yml.enc | 2 +- config/initializers/devise.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/credentials.yml.enc b/config/credentials.yml.enc index f752c14..c45bfb8 100644 --- a/config/credentials.yml.enc +++ b/config/credentials.yml.enc @@ -1 +1 @@ -CspejBJvcyKKmC1MB+qwj8hBuMFt3fw6MXXBFMTgaDuJkdoIOHrQRsbYw35cKuWFLqyzx9iR0c/FW1eiy7q123nvYCTcMmev8sKp9XwTvLYgJWsPrz7QqfUR4M9zlaW1DQbntiVkvVBIzUB9bl55wNx3hIW5gB7yznmsjaTk8kPUwrz6i6j2ni/AB5qhAJoQFjnhiTWxmQFylnEs7nE5tE0/eq5JdJT0N9xOaE/a+73Xzi4VpRHQlykk70vkjY1MCcubtDfde3z5rpQ1r3KJiSHV3YvDLiQC8Oi8/MErIlZjeh5KlJgM46cZmLP+Qbm81pSm/5VzvJuw9bQftrXKgl3OTC3eRl7E6gr0H6Fbb4zrWzWMKXtWezGyqABJNLOjLywwjRWZ6EU6L23uKhZS48pJEgd6uorzY+Sg7yftLFcY3nQ2xsV6+6Z8apBvQvWFvVX6cWqyqV4+xSyc1nUBhClIdilj/wwGNP6qK+nmrQrpOWCWq/iDslE/zutO8JsxnVreFCIJmqkpulEHrYqyyRiqmg==--DMi/IzN/UFlhIxb6--cv+L0Vox2RMR3vgNerQqEg== \ No newline at end of file +TSbQOATv5nRBX1MV+PYqLxzGz2yuyJTgJRqODhGozanX0opBcAD/4ytZNeYwDxx5QYwtzbszrYL9fQNYKSIXv3PXpRV0s1fcQeBhpXJ0iO1DJDMpDfVPg4yI3bC8EgtrYhaifr5+BJ+vvaYmGhyTpTkyOewFYMSR8jvO00inX0eRL8y0DheJ1Rxc51uOYcufSNRHxNk7aVKBvtD2AXZeYYOLH9cHjFLMMGx+hjx64PKGSU/9mUmqYzwgSy49H5Hg8N7p7NJ5KRWzs3F8IJAtB6TZc/wx2ooUFGF6XUvX77Oj6KdTYshYQMntOZuCssH8fIOHDz/4zWUqx3vmOUZBYuOJ5a3K/5a2n+jNPzy6xJqiZE8qOkxB0Hh1uGP3WXnbUVWxx7v/SzHH1VOXmHA0aew2jKXw/Q3bmQRXFHXPniGhbmlF+4RRokeQ0JnZQDWf7GsvuH8QN3gmsD+Nv3KUaLrq07IZ9LHJh71zi/skw3g8V+mul55Ug4Lxv7huKLq5MDLyGiexc5SQHh8ZvlJn0gYmwIDv3mLEZD2R/I6siB+QG+EB8MRxNuEEiopnS68VA48l4GAcz0RMCkbabst9OSGeNoSv4DUsCuZAnEY3i50JIquCwk2uxSvYN3frcuT0XIaFYzXCQzuhrWmTWHlRAzWwVTfF2DZoXtQYaxc6bUm8zkQc9UHrhTAp8Bo1CwEtyiAGUGFcoMXwsROyx004HQGSuA==--8cP8D3yOs0E/Tzjd--QUhdC0bSBBCl+AY7UrS6/g== \ No newline at end of file diff --git a/config/initializers/devise.rb b/config/initializers/devise.rb index 01baaf9..b6f885b 100644 --- a/config/initializers/devise.rb +++ b/config/initializers/devise.rb @@ -118,7 +118,7 @@ Devise.setup do |config| config.stretches = Rails.env.test? ? 1 : 11 # Set up a pepper to generate the hashed password. - # config.pepper = 'b98348cf44b22e33a27c6ed57a69628241525840022a26ac4f9996ba90c127a83c77d654aed6e3289cb700d610fc14502a0cb50af167fe53cc80269c475fcd3a' + config.pepper = Rails.application.credentials.pepper # Send a notification to the original email when the user's email is changed. # config.send_email_changed_notification = false