When a profile is loaded for the 1st time, it prompts for a user ID and one or two passwords, depending on the configuration. The router supports multiple configurations for multiple VPNs. You select a VPN then enable / disable as needed.
FYI, I have 3 profiles loaded for my home VPN. Two tun and 1 tap. pfSense supports multiple simultaneous servers. One (tun) offers pass through only. The other two (tun and tap) offer remote lan connection. I’ll probably remove two of them as I become more experienced with this router. Each has different security.
I have several configs loaded for VPN Unlimited. Some are faster than others on some days. Also, some are for foreign countries so I can watch their TV online while traveling.
I assumed you would disconnect the credentials when the VPN is disabled and provide the same prompt that shows on the initial load to reconnect.
Of course, a check box to save credentials could also be put in, just like in my cell phone openvpn app. If checked, it acts like it does now. The credentials are saved if enabled or disabled. Any change in VPN would also clear the credentials automatically when enabled unless you have the capacity to save them with a profile. Perhaps unchecking the ‘save credentials’ box will clear all saved credentials on all profiles. Lots of options.
Basically, you’re tying into programming that’s already there, with something new for a check box and a routine to clear out the credentials when the VPN is disabled.
Anyone who is travelling will spend a lot of time on the interface with a browser. Impossible not to.