mirror of
https://github.com/YunoHost/dynette.git
synced 2024-09-03 20:06:17 +02:00
Update dynette.rb
This commit is contained in:
parent
543c6ae1e3
commit
d72b59be4e
1 changed files with 4 additions and 0 deletions
|
@ -148,6 +148,10 @@ put '/key/:public_key' do
|
|||
end
|
||||
|
||||
delete '/key/:public_key' do
|
||||
unless ALLOWED_IP.include? request.ip
|
||||
status 403
|
||||
return "Access denied"
|
||||
end
|
||||
params[:public_key] = Base64.decode64(params[:public_key].encode('ascii-8bit'))
|
||||
if entry = Entry.first(:public_key => params[:public_key])
|
||||
if entry.destroy
|
||||
|
|
Loading…
Reference in a new issue