mirror of
https://github.com/neocities/neocities.git
synced 2025-07-24 03:20:40 +02:00
fix password change
This commit is contained in:
parent
5403d61ac2
commit
2dd3a34961
2 changed files with 24 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue