mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Ask for password before resetting settings
This commit is contained in:
@ -263,4 +263,13 @@ function configureDiscreetLogin() {
|
||||
}
|
||||
document.getElementById('shadow_popup').style.opacity = '';
|
||||
$('#cancelRecovery').on('click', onCancelRecoveryClick);
|
||||
$(document).on('keydown', (evt) => {
|
||||
if (evt.key === 'Enter' && document.activeElement.tagName === 'INPUT') {
|
||||
if ($('#passwordRecoveryBlock').is(':visible')) {
|
||||
$('#sendRecovery').trigger('click');
|
||||
} else {
|
||||
$('#loginButton').trigger('click');
|
||||
}
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
Reference in New Issue
Block a user