(await models.User.checkPassword(password));
const user = await models.User.findOne({ login });
(user.checkPassword(password));
// js
document.getElementById('image').src = res.y;
// jquery
$('#image').attr('src', res.y)
.prop('checked', false).trigger('change')