heisbuba commited on
Commit
b27959f
·
verified ·
1 Parent(s): e627f19

Update src/templates/base.html

Browse files
Files changed (1) hide show
  1. src/templates/base.html +2 -3
src/templates/base.html CHANGED
@@ -156,10 +156,9 @@
156
  Created by <a href="https://x.com/heisbuba" title="X @heisbuba" target="_blank">Buba</a> with Data curiosity.
157
  </p>
158
  </footer>
159
- {% if request.endpoint in ['auth.login', 'auth.register', 'auth.reset_password'] %}
160
  <script>
161
- // Password toggle function
162
- function togglePassword(inputId, btn) {
163
  const input = document.getElementById(inputId);
164
  const iconEye = btn.querySelector('.icon-eye');
165
  const iconEyeOff = btn.querySelector('.icon-eye-off');
 
156
  Created by <a href="https://x.com/heisbuba" title="X @heisbuba" target="_blank">Buba</a> with Data curiosity.
157
  </p>
158
  </footer>
159
+ {% if request.endpoint in ['auth.login', 'auth.register', 'main.settings'] %}
160
  <script>
161
+ function toggleFieldVisibility(inputId, btn) {
 
162
  const input = document.getElementById(inputId);
163
  const iconEye = btn.querySelector('.icon-eye');
164
  const iconEyeOff = btn.querySelector('.icon-eye-off');