mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
Fix for password reset validation
This commit is contained in:
parent
d73017ec56
commit
3cb7be6f35
1 changed files with 2 additions and 1 deletions
|
@ -15,7 +15,8 @@ post '/send_password_reset' do
|
|||
token = SecureRandom.uuid.gsub('-', '')
|
||||
sites.each do |site|
|
||||
next unless site.parent?
|
||||
site.update password_reset_token: token
|
||||
site.password_reset_token = token
|
||||
site.save_changes validate: false
|
||||
|
||||
body = <<-EOT
|
||||
Hello! This is the Neocities cat, and I have received a password reset request for your e-mail address.
|
||||
|
|
Loading…
Add table
Reference in a new issue