Production-ready examples for implementing two-factor authentication
jcogs_otp_pro_examples template group.
You can customize them directly in the Template Manager or copy them to your own template group.
Choose the authentication flow that fits your site's UX:
Single-page login with OTP appearing inline when required
Traditional two-page flow: login → validation
Simple AJAX modal using single tag
Simple AJAX inline using single tag
Full AJAX modal implementation with manual JavaScript
Full AJAX inline implementation with manual JavaScript
Member profile pages for OTP management:
These templates are ready to use as-is for testing and development. To customize them for your site:
Edit the templates directly in the Template Manager under the jcogs_otp_pro_examples group. Perfect for quick customization and testing.
Create a new template group for your site and copy these templates as a starting point:
member_auth)jcogs_otp_pro_examples| Element | Location | Notes |
|---|---|---|
| CSS Styling | All templates use BEM classes | Override with your own CSS |
| Success URLs | return="..." parameters |
Point to your dashboard/home page |
| Form Messages | Error and success text | Customize wording for your brand |