spr-networks / super

📡 SPR: Open Source, secure, user friendly and fast wifi routers for your home. One wifi password per device. Ad Blocking & Privacy Blocklists. Policy Based Network Access
https://www.supernetworks.org/
BSD 3-Clause "New" or "Revised" License
196 stars 13 forks source link

Add OTP support for plugins #356

Open lts-rad opened 2 months ago

lts-rad commented 2 months ago

for some plugins we shoudl allow requiring OTP codes to use them over the proxy

update func PluginRoutes(external_router_authenticated mux.Router, external_router_public mux.Router) {

to check if a plugin has OTP enabled, and wrap them with applyJwtOtpCheck if so