mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-09 13:06:14 +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');
|
var target = $(obj).attr('rel');
|
||||||
|
|
||||||
$(obj).unbind().keyup(function() {
|
$(obj).unbind().keyup(function() {
|
||||||
$.getJSON(opts.url,
|
$.ajax({url: opts.url,
|
||||||
{command: 'checkpwstrength', pwd: $(this).val()},
|
type: 'POST',
|
||||||
function(data) {
|
dataType: "json",
|
||||||
|
data: {command: 'checkpwstrength', pwd: $(this).val()},
|
||||||
|
success: function(data) {
|
||||||
if(data.error) {
|
if(data.error) {
|
||||||
opts.onError(data, target);
|
opts.onError(data, target);
|
||||||
} else {
|
} else {
|
||||||
opts.onChange(data, target);
|
opts.onChange(data, target);
|
||||||
}
|
}
|
||||||
});
|
}
|
||||||
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue
Block a user