mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
catch bad input
This commit is contained in:
parent
416e82ee65
commit
51ef1c3b2c
1 changed files with 5 additions and 1 deletions
|
@ -148,7 +148,11 @@ post '/forgot_username' do
|
||||||
redirect '/forgot_username'
|
redirect '/forgot_username'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
begin
|
||||||
sites = Site.get_recovery_sites_with_email params[:email]
|
sites = Site.get_recovery_sites_with_email params[:email]
|
||||||
|
rescue ArgumentError
|
||||||
|
redirect '/forgot_username'
|
||||||
|
end
|
||||||
|
|
||||||
sites.each do |site|
|
sites.each do |site|
|
||||||
body = <<-EOT
|
body = <<-EOT
|
||||||
|
|
Loading…
Add table
Reference in a new issue