🚫👤feat: delete user from UI (#1526)

* initial commit

* fix: UserController bugs; fix: lint errors

* fix: delete files

* language support

* style(DeleteAccount): update to the latest style

* style: fix after merge main

* chore: Add canDeleteAccount middleware for user deletion endpoint

* chore: renamed to ALLOW_ACCOUNT_DELETION

* fix(canDeleteAccount): use uppercase admin role

* chore: imports order

* chore: Enable account deletion by default if omitted/commented out

* chore: Add logging for user account deletion

* chore: Bump data-provider package version to 0.6.6

* chore: Import Transaction model in UserController

* chore: Update CONFIG_VERSION to 1.1.4

* chore: Update user account deletion logging

* chore: Refactor user account deletion logic

---------

Co-authored-by: Berry-13 <root@Berry>
Co-authored-by: Danny Avila <messagedaniel@protonmail.com>
Co-authored-by: Danny Avila <danny@librechat.ai>
This commit is contained in:
Marco Beretta 2024-06-06 01:35:12 +02:00 committed by GitHub
parent f69b317171
commit a7f5b57272
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
19 changed files with 348 additions and 17 deletions

View file

@ -238,6 +238,7 @@ export default {
com_ui_preview: 'Preview',
com_ui_upload: 'Upload',
com_ui_connect: 'Connect',
com_ui_locked: 'Locked',
com_ui_upload_delay:
'Uploading "{0}" is taking more time than anticipated. Please wait while the file finishes indexing for retrieval.',
com_ui_privacy_policy: 'Privacy policy',
@ -546,6 +547,14 @@ export default {
com_nav_help_faq: 'Help & FAQ',
com_nav_settings: 'Settings',
com_nav_search_placeholder: 'Search messages',
com_nav_delete_account: 'Delete account',
com_nav_delete_account_confirm: 'Delete account - are you sure?',
com_nav_delete_account_button: 'Permanently delete my account',
com_nav_delete_account_email_placeholder: 'Please enter your account email',
com_nav_delete_account_confirm_placeholder: 'To proceed, type "DELETE" in the input field below',
com_nav_delete_warning: 'WARNING: This will permanently delete your account.',
com_nav_delete_data_info: 'All your data will be deleted.',
com_nav_delete_help_center: 'For more information, please visit our Help Center.',
com_nav_conversation_mode: 'Conversation Mode',
com_nav_auto_send_text: 'Auto send text (after 3 sec)',
com_nav_auto_transcribe_audio: 'Auto transcribe audio',

View file

@ -212,6 +212,7 @@ export default {
com_ui_preview: 'Anteprima',
com_ui_upload: 'Carica',
com_ui_connect: 'Connetti',
com_ui_locked: 'Bloccato',
com_ui_upload_delay:
'Il caricamento di "{0}" sta richiedendo più tempo del previsto. Attendi il completamento dell\'indicizzazione per il recupero.',
com_ui_privacy_policy: 'Informativa sulla privacy',
@ -520,8 +521,17 @@ export default {
com_nav_help_faq: 'Guida e FAQ',
com_nav_settings: 'Impostazioni',
com_nav_search_placeholder: 'Cerca messaggi',
com_nav_setting_general: 'Generali',
com_nav_setting_beta: 'Funzionalità beta',
com_nav_delete_account: 'Elimina account',
com_nav_delete_account_confirm: 'Sei sicuro di voler eliminare il tuo account?',
com_nav_delete_account_button: 'Elimina permanentemente il mio account',
com_nav_delete_account_email_placeholder: 'Inserisci la tua email',
com_nav_delete_account_confirm_placeholder:
'Per procedere, digita "DELETE" nel campo di input sottostante',
com_dialog_delete_warning: 'ATTENZIONE: Questo cancellerà permanentemente il tuo account.',
com_dialog_delete_data_info: 'Tutti i tuoi dati verranno eliminati.',
com_dialog_delete_help_center: 'Per più informazioni, visita il nostro centro assistenza.',
com_nav_setting_general: 'Generale',
com_nav_setting_beta: 'Funzioni Beta',
com_nav_setting_data: 'Controlli dati',
com_nav_setting_speech: 'Voce',
com_nav_setting_account: 'Account',