File tree Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Original file line number Diff line number Diff line change 1+ {% extends "base.html" %}
2+
3+ {% block content %}
4+ < div class ="container ">
5+ < div class ="settings ">
6+ < h3 > 2FA Settings</ h3 >
7+ < p > Two-Factor Authentication: < strong > {{ 'Enabled' if current_user.totp_enabled else 'Disabled' }}</ strong > </ p >
8+ < button onclick ="toggle2FA() "> {{ 'Disable' if current_user.totp_enabled else 'Enable' }} 2FA</ button >
9+ </ div >
10+
11+ < div class ="forwarder-create ">
12+ < h2 > Create Email Forwarder for {{ domain }}</ h2 >
13+ < form id ="createForwarderForm ">
14+ < div class ="form-group ">
15+ < label for ="alias "> Alias</ label >
16+ < input type ="text " id ="alias " name ="alias " required >
17+ < span > @{{ domain }}</ span >
18+ </ div >
19+ < div class ="form-group ">
20+ < label for ="destination "> Destination</ label >
21+ < select id ="destination " name ="destination " required >
22+ < option value =""> Loading email accounts...</ option >
23+ </ select >
24+ </ div >
25+ < button type ="submit "> Create Forwarder</ button >
26+ </ form >
27+ </ div >
28+
29+ < div class ="forwarders-list ">
30+ < h2 > Existing Forwarders</ h2 >
31+ < div id ="forwardersList "> Loading...</ div >
32+ </ div >
33+ </ div >
34+
35+ < div id ="qrModal " class ="modal " style ="display: none; ">
36+ < div class ="modal-content ">
37+ < h3 > Scan QR Code with Authenticator App</ h3 >
38+ < div id ="qrCode "> </ div >
39+ < p > Secret: < code id ="totpSecret "> </ code > </ p >
40+ < button onclick ="closeModal() "> Close</ button >
41+ </ div >
42+ </ div >
43+ {% endblock %}
You can’t perform that action at this time.
0 commit comments