catch bad input

This commit is contained in:
Kyle Drake 2025-04-23 00:26:09 -05:00
parent 416e82ee65
commit 51ef1c3b2c

View file

@ -148,7 +148,11 @@ post '/forgot_username' do
redirect '/forgot_username'
end
sites = Site.get_recovery_sites_with_email params[:email]
begin
sites = Site.get_recovery_sites_with_email params[:email]
rescue ArgumentError
redirect '/forgot_username'
end
sites.each do |site|
body = <<-EOT