fix password change

This commit is contained in:
Kyle Drake 2014-09-17 21:11:14 -07:00
parent 5403d61ac2
commit 2dd3a34961
2 changed files with 24 additions and 2 deletions

View file

@ -210,7 +210,7 @@ class Site < Sequel::Model
def password=(plaintext)
@password_length = plaintext.nil? ? 0 : plaintext.length
@password_plaintext = plaintext
values[:password] = BCrypt::Password.create plaintext, cost: (self.class.bcrypt_cost || BCrypt::Engine::DEFAULT_COST)
super BCrypt::Password.create plaintext, cost: (self.class.bcrypt_cost || BCrypt::Engine::DEFAULT_COST)
end
def new_tags_string=(tags_string)