ajout modif besnik du 4 mars
Some checks are pending
Deploy production (servyass) / deploy (push) Waiting to run
Some checks are pending
Deploy production (servyass) / deploy (push) Waiting to run
This commit is contained in:
parent
0f70b82e4b
commit
2cb4def949
5 changed files with 220 additions and 157 deletions
|
|
@ -98,17 +98,17 @@
|
|||
<input
|
||||
class="form-control pe-5"
|
||||
type="password"
|
||||
id="user_password"
|
||||
name="user_password"
|
||||
id="user_pwd"
|
||||
name="user_pwd"
|
||||
required
|
||||
>
|
||||
<button
|
||||
class="btn position-absolute top-50 end-0 translate-middle-y me-2 p-0 border-0 bg-transparent text-muted"
|
||||
type="button"
|
||||
onclick="togglePassword('user_password', this)"
|
||||
onclick="togglePassword('user_pwd', this)"
|
||||
style="z-index: 10;"
|
||||
>
|
||||
<i class="fa-solid fa-eye"></i>
|
||||
<i class="fa-solid fa-eye-slash"></i>
|
||||
</button>
|
||||
</div>
|
||||
<div class="mt-2 small text-muted">
|
||||
|
|
@ -141,7 +141,7 @@
|
|||
onclick="togglePassword('pwd_confirm', this)"
|
||||
style="z-index: 10;"
|
||||
>
|
||||
<i class="fa-solid fa-eye"></i>
|
||||
<i class="fa-solid fa-eye-slash"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -238,7 +238,7 @@
|
|||
|
||||
</div>
|
||||
<script>
|
||||
const pwd = document.getElementById('user_password');
|
||||
const pwd = document.getElementById('user_pwd');
|
||||
|
||||
const rules = {
|
||||
length: { el: null, test: v => v.length >= 15 },
|
||||
|
|
@ -267,10 +267,10 @@
|
|||
const icon = btn.querySelector('svg');
|
||||
if (input.type === 'password') {
|
||||
input.type = 'text';
|
||||
icon.classList.replace('fa-eye', 'fa-eye-slash');
|
||||
icon.classList.replace('fa-eye-slash', 'fa-eye');
|
||||
} else {
|
||||
input.type = 'password';
|
||||
icon.classList.replace('fa-eye-slash', 'fa-eye');
|
||||
icon.classList.replace('fa-eye', 'fa-eye-slash');
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue