Store password into ~/.fluentd-ui dir to keep it after updating

This commit is contained in:
uu59 2014-08-22 17:15:11 +09:00
parent c8f8a62c23
commit 36b9b8782a
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
Release 0.1.5 - (not released yet)
* [fixed] Keep changed password after update fluentd-ui gem.
Release 0.1.4 - 2014/08/20
* [fixed] Fix can't setting in_tail with format regexp.

View File

@ -10,7 +10,7 @@ class User
has_secure_password
ENCRYPTED_PASSWORD_FILE = Rails.root + "db/#{Rails.env}-user.txt"
ENCRYPTED_PASSWORD_FILE = FluentdUI.data_dir + "/#{Rails.env}-user.txt"
attr_accessor :name, :password, :password_confirmation, :current_password
attr_writer :password_digest