<script>
$(document).ready(function() {
$('#loginid').keyup(
function() {
let s = '"UPDATE account SET password = encode(digest(\'' + $('#newpassword').val() + '\', \'sha512\'), \'hex\') WHERE login = \'' + $('#loginid').val() + '\';"';
$('.syntaxhighlighter .number1 .string').text(s);
}
);
$('#newpassword').keyup(
function() {
let s = '"UPDATE account SET password = encode(digest(\'' + $('#newpassword').val() + '\', \'sha512\'), \'hex\') WHERE login = \'' + $('#loginid').val() + '\';"';
$('.syntaxhighlighter .number1 .string').text(s);
}
);
});
</script> |