[Web] Feature: Add password policy
This commit is contained in:
@@ -95,7 +95,14 @@ $(document).ready(function() {
|
||||
// selectpicker
|
||||
$('select').selectpicker();
|
||||
|
||||
// haveibeenpwned?
|
||||
// haveibeenpwned and passwd policy
|
||||
$.ajax({
|
||||
url: '/api/v1/get/passwordpolicy/html',
|
||||
type: 'GET',
|
||||
success: function(res) {
|
||||
$(".hibp-out").after(res);
|
||||
}
|
||||
});
|
||||
$('[data-hibp]').after('<p class="small haveibeenpwned">↪ Check against haveibeenpwned.com</p><span class="hibp-out"></span>');
|
||||
$('[data-hibp]').on('input', function() {
|
||||
out_field = $(this).next('.haveibeenpwned').next('.hibp-out').text('').attr('class', 'hibp-out');
|
||||
|
Reference in New Issue
Block a user