mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-03-11 16:35:38 +00:00
use post request for checking password strength
get request will leave the password in the log files
This commit is contained in:
parent
ae1f78228a
commit
5e17cf150f
|
@ -47,15 +47,18 @@
|
|||
var target = $(obj).attr('rel');
|
||||
|
||||
$(obj).unbind().keyup(function() {
|
||||
$.getJSON(opts.url,
|
||||
{command: 'checkpwstrength', pwd: $(this).val()},
|
||||
function(data) {
|
||||
$.ajax({url: opts.url,
|
||||
type: 'POST',
|
||||
dataType: "json",
|
||||
data: {command: 'checkpwstrength', pwd: $(this).val()},
|
||||
success: function(data) {
|
||||
if(data.error) {
|
||||
opts.onError(data, target);
|
||||
} else {
|
||||
opts.onChange(data, target);
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue
Block a user