mirror of
https://github.com/neocities/neocities.git
synced 2025-08-04 08:42:00 +02:00
library list, require_login for custom_domain
This commit is contained in:
parent
48ec974195
commit
d83cef0e09
2 changed files with 13 additions and 2 deletions
2
app.rb
2
app.rb
|
@ -506,12 +506,12 @@ get '/password_reset_confirm' do
|
|||
end
|
||||
|
||||
get '/custom_domain' do
|
||||
require_login
|
||||
slim :custom_domain
|
||||
end
|
||||
|
||||
post '/custom_domain' do
|
||||
require_login
|
||||
original_domain = current_site.domain
|
||||
current_site.domain = params[:domain]
|
||||
|
||||
if current_site.valid?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue