feat: i18n reset password message (#3106)

This commit is contained in:
Vlad Stan 2025-04-14 13:25:41 +03:00 committed by GitHub
parent 23b4c2cc16
commit e686ecda51
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 4 additions and 2 deletions

File diff suppressed because one or more lines are too long

View file

@ -323,6 +323,8 @@ window.localisation.en = {
set_password: 'Set Password', set_password: 'Set Password',
invalid_password: 'Password must have at least 8 characters', invalid_password: 'Password must have at least 8 characters',
invalid_password_repeat: 'Passwords do not match', invalid_password_repeat: 'Passwords do not match',
reset_key_generated: 'A reset key has been generated.',
reset_key_copy: 'Click OK to copy the reset URL to your clipboard.',
login: 'Login', login: 'Login',
register: 'Register', register: 'Register',
username: 'Username', username: 'Username',

View file

@ -188,7 +188,7 @@ window.UsersPageLogic = {
.then(res => { .then(res => {
LNbits.utils LNbits.utils
.confirmDialog( .confirmDialog(
'A reset key has been generated. Click OK to copy the rest key to your clipboard.' this.$t('reset_key_generated') + ' ' + this.$t('reset_key_copy')
) )
.onOk(() => { .onOk(() => {
const url = window.location.origin + '?reset_key=' + res.data const url = window.location.origin + '?reset_key=' + res.data