I think this is solved as I wrote in the forum thread.
Learned something new: When I tried to revert the wireless.js
in luci to a version offering the configuration for #ppsk aka #dpsk I controlled the downloaded version in the debugging window of #firefox.
Right there its possible to download a javascript file from the debugger to a file, change it and use it inside the opened web page. No need to change anything on the server serving the original js.
Yes!
#OpenWRT + #Packetfence:
On an unencrypted registration SSID authorized a client through a portal page.
Then showed the client via dpsk (dynamic pre-shared key) provisioner login data for the encrypted SSID to connect to a network with internet access.
When the client connects to the unencrypted SSID it gets redirected to a portal to enter an email address (and possibly other data). Packetfence sends an email to a pre-configured address (owned by the sponsor) containing a link to approve the request for access.
The client waits on a portal html page for the sponsor to click the link. After the sponsor clicks the link to approve the request the clients web page reloads and shows the name of the encrypted SSID to connect to and a password for the connection.
Next step to accomplish: configure OpenWRT (hostapd) and Packetfence to allow the usage of the PSK to connect to the encrypted SSID.
BTW: Testing this I'm using #deskhop to switch seamlessly between my notebook and my #Librem5 which I use as a test client for the wifi connection to the OpenWRT access point.