BioTorrents.de’s version of Gazelle
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

access.twig 5.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. <table cellpadding="6" cellspacing="1" border="0" width="100%" class="layout border user_options" id="access_settings">
  2. <tr class="colhead_dark">
  3. <td colspan="2">
  4. <strong>Access Settings</strong>
  5. </td>
  6. </tr>
  7. <tr id="acc_resetpk_tr">
  8. <td class="label tooltip_interactive"
  9. title="For information about the function of your passkey, please &lt;a href=&quot;{{ constant('SITE_URL') }}/wiki.php?action=article&amp;amp;name=Passkey&quot;&gt;read this wiki article&lt;/a&gt;."
  10. data-title-plain="For information about the function of your passkey, please read the &quot;Passkey&quot; wiki article.">
  11. <strong>Reset passkey</strong></td>
  12. <td>
  13. <div class="field_div">
  14. <label><input type="checkbox" name="resetpasskey" id="resetpasskey" />
  15. Reset your passkey?</label>
  16. </div>
  17. <p class="min_padding">Any active torrents must be downloaded again to continue leeching/seeding.</p>
  18. </td>
  19. </tr>
  20. <tr id="acc_irckey_tr">
  21. <td class="label"><strong>IRC key</strong></td>
  22. <td>
  23. <div class="field_div">
  24. <input type="text" size="50" name="irckey" id="irckey" value="{{ user.IRCKey }}" />
  25. <input type="button" onclick="RandomIRCKey();" value="Generate IRC key" />
  26. </div>
  27. <p class="min_padding">If set, this key will be used instead of your site password when authenticating with
  28. {{ constant('BOT_NICK') }} on the <a href="wiki.php?action=article&amp;id=5">site's IRC network</a>. <span
  29. style="white-space: nowrap;">Please note:</span></p>
  30. <ul>
  31. <li>This value is stored in plaintext and should not be your password.</li>
  32. <li>IRC keys must be between 6 and 32 characters.</li>
  33. </ul>
  34. </td>
  35. </tr>
  36. <tr id="acc_email_tr">
  37. <td class="label tooltip" title="This is the email address you want associated with your {{ constant('SITE_NAME') }}
  38. account. It will be used if you forget your password or if an alert needs to be sent to you.">
  39. <strong>Email address</strong>
  40. </td>
  41. <td>
  42. <div class="field_div">
  43. <input type="email" size="50" name="email" id="email" value="{{ user.email }}" />
  44. </div>
  45. <p class="min_padding">When changing your email address, you must enter your current password in the
  46. "Current password" field before saving your changes.</p>
  47. </td>
  48. </tr>
  49. <tr id="acc_password_tr">
  50. <td class="label"><strong>Change password</strong></td>
  51. <td>
  52. <div class="field_div">
  53. <label>Current password:<br />
  54. <input type="password" size="40" name="cur_pass" id="cur_pass" value="" /></label>
  55. </div>
  56. <div class="field_div">
  57. <label>New password:<br />
  58. <input type="password" size="40" name="new_pass_1" id="new_pass_1" value="" /> <strong id="pass_strength"></strong></label>
  59. </div>
  60. <div class="field_div">
  61. <label>Confirm new password:<br />
  62. <input type="password" size="40" name="new_pass_2" id="new_pass_2" value="" /> <strong id="pass_match"></strong></label>
  63. </div>
  64. <div class="setting_description">
  65. A strong password:
  66. <ul>
  67. <li>is 8 characters or longer, contains at least 1 lowercase and uppercase letter, and contains at least a number or symbol</li>
  68. <li>Or is 20 characters or longer.</li>
  69. </ul>
  70. </div>
  71. </td>
  72. </tr>
  73. <tr id="acc_2fa_tr">
  74. <td class="label"><strong>Two-factor Authentication</strong></td>
  75. <td>
  76. Two-factor authentication is currently <strong class="{{ user.TFAKey ? 'r99' : 'warning' }}">{{ user.TFAKey ? 'enabled' : 'disabled' }}</strong> for your account.
  77. <br><br>
  78. <a href="user.php?action=2fa&amp;do={{ user.TFAKey ? 'remove' : 'configure' }}&amp;userid={{ user.id }}">Click here to {{ user.TFAKey ? 'remove' : 'configure' }}</a>
  79. </td>
  80. </tr>
  81. <tr id="acc_api_keys_tr">
  82. <td class="label"><strong>API Keys</strong></td>
  83. <td>API keys can be generated to access our
  84. <b><a href="https://github.com/OPSnet/Gazelle/wiki/JSON-API-Documentation" target='_blank'>API</a></b>.<br />
  85. Rememeber to revoke tokens you no longer use.<br />
  86. <strong class="important_text">Treat your tokens like passwords and keep them secret.</strong>
  87. <br /><br />
  88. <table class="layout border">
  89. <tr class='colhead'>
  90. <th>Name</th>
  91. <th>Created</th>
  92. <th>Revoke</th>
  93. </tr>
  94. {% for token in user.apiTokenList %}
  95. <tr class="{{ cycle(['a', 'b'], loop.index0) }}">
  96. <td>{{ token.name }}</td>
  97. <td>{{ token.created|time_diff }}</td>
  98. <td style='text-align: center'><a href='user.php?action=token&amp;do=revoke&amp;user_id={{ logged_user }}&amp;token_id={{ token.id }}'>Revoke</a>
  99. </tr>
  100. {% endfor %}
  101. </table>
  102. <a href="user.php?action=token&amp;user_id={{ logged_user }}">Click here to create a new token</a>
  103. </td>
  104. </tr>
  105. </table>