aha-oida / aha-secret

Share secrets encrypted
GNU General Public License v3.0
4 stars 0 forks source link

process defined params only #112

Closed armins closed 3 weeks ago

armins commented 3 weeks ago

This pr adds functionality to check the params of "create bin" POST request.

First level: Other params than params[:bin] and params[:retention_time] are removed. "bin" level: Other params than params[:bin][:payload] and params[:bin][:has_password]

I refactored the controllers helper methods into a helpers file (for easier testing).

arusa commented 3 weeks ago

I have created an alternative PR for this topic, because I thought this could be solved in a simpler way.

https://github.com/aha-oida/aha-secret/pull/114