Skip to content

Commit

Permalink
Disallow file uploads on demo site
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyevans committed Aug 31, 2022
1 parent 90ad805 commit c11d3a7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions demo-site/rodauth_demo.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ class App < Roda
plugin :flash
plugin :common_logger
plugin :route_csrf
plugin :disallow_file_uploads

secret = ENV.delete('RODAUTH_SESSION_SECRET') || SecureRandom.random_bytes(64)
plugin :sessions, :secret=>secret, :key=>'rodauth-demo.session'
Expand Down

0 comments on commit c11d3a7

Please sign in to comment.