I m working on adding 2FA to my pode site, but I am getting gray hairs....
The PowerShell part is up and running, I can generate and validate the keys.
But what to do in Pode.
User1 has 2FA enabled.
Use2 has not.
Example 1
Step 1:
Validate user/pass (easy with New-PodeAuthScheme -Form{...})
Step 2:
if
2FA is enabled (another form with pin and hidden username )
else
Skip this step, but how?
What to do?
I m working on adding 2FA to my pode site, but I am getting gray hairs.... The PowerShell part is up and running, I can generate and validate the keys.
But what to do in Pode.
User1 has 2FA enabled. Use2 has not.
Example 1
Step 1: Validate user/pass (easy with New-PodeAuthScheme -Form{...})
Step 2: if 2FA is enabled (another form with pin and hidden username ) else Skip this step, but how?
Example 2
Create 2 login forms Hide Pin with value ""
Example 3
The one I am hoping for