mirror of
https://github.com/neocities/neocities.git
synced 2025-07-20 01:26:03 +02:00
further cleanups to filtering code
This commit is contained in:
parent
a7ee94b0c7
commit
aa56561dff
6 changed files with 52 additions and 16 deletions
|
@ -54,7 +54,15 @@ end
|
|||
|
||||
post '/create' do
|
||||
content_type :json
|
||||
require_unbanned_ip
|
||||
|
||||
if banned?(true)
|
||||
signout
|
||||
session[:banned] = true if !session[:banned]
|
||||
|
||||
flash[:error] = 'There was an error, please <a href="/contact">contact support</a> to log in.'
|
||||
redirect '/'
|
||||
end
|
||||
|
||||
dashboard_if_signed_in
|
||||
|
||||
@site = Site.new(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue