forked from UKSOURCE/cms.hailearning.edu.vn
feat: add password toggle visibility and rename forgot-password to change-password
This commit is contained in:
@@ -176,12 +176,26 @@
|
||||
<form action="/auth/reset-password/<%= token %>" method="POST" class="login-form">
|
||||
<div class="form-group" style="margin-bottom: 12px;">
|
||||
<label for="password" class="form-label">New Password</label>
|
||||
<input type="password" class="form-control" id="password" name="password" required autofocus>
|
||||
<div style="position: relative;">
|
||||
<input type="password" class="form-control" id="password" name="password" required autofocus
|
||||
style="padding-right: 40px;">
|
||||
<button type="button" class="password-toggle-btn" aria-label="Show password"
|
||||
style="position: absolute; right: 10px; top: 50%; transform: translateY(-50%); border: none; background: none; color: #666; cursor: pointer; padding: 0; z-index: 10;">
|
||||
<i class="fas fa-eye"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group" style="margin-bottom: 12px;">
|
||||
<label for="confirm_password" class="form-label">Confirm New Password</label>
|
||||
<input type="password" class="form-control" id="confirm_password" name="confirm_password" required>
|
||||
<div style="position: relative;">
|
||||
<input type="password" class="form-control" id="confirm_password" name="confirm_password" required
|
||||
style="padding-right: 40px;">
|
||||
<button type="button" class="password-toggle-btn" aria-label="Show password"
|
||||
style="position: absolute; right: 10px; top: 50%; transform: translateY(-50%); border: none; background: none; color: #666; cursor: pointer; padding: 0; z-index: 10;">
|
||||
<i class="fas fa-eye"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div style="text-align: center; margin-top: 20px;">
|
||||
@@ -234,6 +248,9 @@
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<!-- Password Toggle JS -->
|
||||
<script src="/js/password-toggle.js"></script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user