mirror of
https://github.com/neocities/neocities.git
synced 2025-07-05 10:33:22 +02:00
better flow for current site check
This commit is contained in:
parent
59dbc1b2e1
commit
1beedb79b1
3 changed files with 9 additions and 8 deletions
|
@ -77,8 +77,4 @@ post '/signout' do
|
|||
require_login
|
||||
signout
|
||||
redirect '/'
|
||||
end
|
||||
|
||||
def signout
|
||||
session[:id] = nil
|
||||
end
|
||||
end
|
|
@ -88,7 +88,6 @@ end
|
|||
|
||||
def require_login_file_upload_ajax
|
||||
file_upload_response 'You are not signed in!' unless signed_in?
|
||||
file_upload_response 'Please contact support.' if banned?
|
||||
end
|
||||
|
||||
post '/site_files/upload' do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue