From 308d07785f811ff470d0e90b11680926a823027b Mon Sep 17 00:00:00 2001 From: piotrruss Date: Sun, 29 May 2022 17:45:54 +0100 Subject: add change password option --- configs/appList.js | 3 ++- configs/sendMail.js | 2 +- configs/translations.js | 44 ++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 47 insertions(+), 2 deletions(-) (limited to 'configs') diff --git a/configs/appList.js b/configs/appList.js index 13ca6d6..7963648 100644 --- a/configs/appList.js +++ b/configs/appList.js @@ -1,9 +1,10 @@ -import { Calculator, Notes, Player, Settings, Youtube } from 'apps' +import { Calculator, Notes, Player, Settings, ChangePassword, Youtube } from 'apps' const appList = { Calculator: { component: Calculator, icon: true, buttons: ['min', 'close'], height: '30em', width: '20em' }, Notes: { component: Notes, icon: true, buttons: ['min', 'max', 'close'], height: '48em', width: '64em' }, Player: { component: Player, icon: true, buttons: ['min', 'max', 'close'], height: '48em', width: '64em' }, + ChangePassword: { component: ChangePassword, icon: false, buttons: ['min', 'close'], height: '21em', width: '18em' }, Settings: { component: Settings, icon: false, buttons: ['min', 'close'], height: '23em', width: '16em' }, Youtube: { component: Youtube, icon: true, buttons: ['min', 'max', 'close'], height: '48em', width: '64em' } } diff --git a/configs/sendMail.js b/configs/sendMail.js index 6405607..c026f0c 100644 --- a/configs/sendMail.js +++ b/configs/sendMail.js @@ -1,6 +1,6 @@ import nodemailer from 'nodemailer' -const sendMail = (to, subject, text, html) => { +const sendMail = ({to, subject, text, html}) => { const transporter = nodemailer.createTransport({ port: 465, host: process.env.MYAPPS_MAIL_SMTP_SERVER, diff --git a/configs/translations.js b/configs/translations.js index 1b8ed40..b496719 100644 --- a/configs/translations.js +++ b/configs/translations.js @@ -36,12 +36,15 @@ const translations = { Calculator: 'Calculator', Notes: 'Notes', Player: 'Player', + ChangePassword: 'Change Password', Settings: 'Settings', Youtube: 'Youtube', mail_ver_subject: 'Verification of your new apps.pruss.it account', mail_ver_t1: 'Thank you for creating an account in My Apps.', mail_ver_t2: 'We are sending you the verification code:', mail_ver_t3: 'To finish verification log in and paste this code.', + mail_pass_subject: 'Your password has been changed', + mail_pass_t1: 'The password to your apps.pruss.it account was successfully changed.', verification_mail_error: 'Could not send verification email', verification_error: 'Could not verify user', verification_title: 'One last step missing!', @@ -79,6 +82,14 @@ const translations = { player_playlist_default: 'Default playlist', player_item_playing: 'Playing in Player', player_item_enqueued: 'Enqueued in Player', + change_password_current: 'Current password', + change_password_new: 'New password', + change_password_confirm: 'Confirm new password', + change_password_changed: 'Password successfully changed', + change_password_wrong_current: 'Wrong current password', + change_password_wrong_new: 'New passwords do not match', + change_password_same_password: 'New password cannot be the same like previous password', + change_password_error: 'Error while changing password', yt_video: 'Videos', yt_video_count: ' videos', yt_live: 'Live', @@ -125,11 +136,14 @@ const translations = { Notes: 'Notatki', Player: 'Odtwarzacz', Settings: 'Ustawienia', + ChangePassword: 'Zmień hasło', Youtube: 'Youtube', mail_ver_subject: 'Weryfikacja Twojego nowego konta w apps.pruss.it.', mail_ver_t1: 'Dziękujemy za założenie konta w My Apps', mail_ver_t2: 'Przesyłamy Ci kod weryfikacyjny:', mail_ver_t3: 'W celu zakończenia weryfikacji zaloguj się i podaj ten kod.', + mail_pass_subject: 'Twoje hasło zostało zmienione', + mail_pass_t1: 'Hasło do Twojego konta apps.pruss.it zostało zmienione.', verification_mail_error: 'Błąd podczas wysyłania maila z kodem weryfikacyjnym', verification_error: 'Błąd podczas weryfikacji użytkownika', verification_title: 'Pozostał ostatni krok!', @@ -167,6 +181,14 @@ const translations = { player_playlist_default: 'Domyślna lista', player_item_playing: 'Odtwarzanie w Odtwarzaczu', player_item_enqueued: 'Dodano do kolejki odtwarzania', + change_password_current: 'Obecne hasło', + change_password_new: 'Nowe hasło', + change_password_confirm: 'Powtórz nowe hasło', + change_password_changed: 'Hasło zostało zmienione', + change_password_wrong_current: 'Błędne obecne hasło', + change_password_wrong_new: 'Nowe hasła nie zgadzają się', + change_password_same_password: 'Nowe hasło musi różnić się od poprzedniego', + change_password_error: 'Bład podczas zmiany hasła', yt_video: 'Wideo', yt_video_count: ' klipów', yt_live: 'Na żywo', @@ -213,11 +235,14 @@ const translations = { Notes: 'Notas', Player: 'Jugador', Settings: 'Ajustes', + ChangePassword: 'Cambio de contraseña', Youtube: 'Youtube', mail_ver_subject: 'Verificación de su nueva cuenta en apps.pruss.it.', mail_ver_t1: 'Gracias por crear una cuenta con Mis aplicaciones', mail_ver_t2: 'Te enviamos un código de verificación: ', mail_ver_t3: 'Para completar la verificación, inicie sesión e ingrese este código.', + mail_pass_subject: 'Tu contraseña ha sido cambiada', + mail_pass_t1: 'La contraseña de su cuenta apps.pruss.it se cambió con éxito.', verification_mail_error: 'Error al enviar el correo electrónico con el código de verificación', verification_error: 'Error de verificación del usuario', verification_title: '¡Queda un último paso!', @@ -255,6 +280,14 @@ const translations = { player_playlist_default: 'Lista predeterminada', player_item_playing: 'Jugar con el Jugador', player_item_enqueued: 'Añadido a la cola de reproducción', + change_password_current: 'Contraseña actual', + change_password_new: 'Contraseña nueva', + change_password_confirm: 'Repetir contraseña nueva', + change_password_changed: 'La contraseña ha sido cambiada', + change_password_wrong_current: 'Contraseña actual incorrecta', + change_password_wrong_new: 'Las nuevas contraseñas no coinciden', + change_password_same_password: 'La nueva contraseña debe ser diferente a la anterior', + change_password_error: 'Error al cambiar la contraseña', yt_video: 'Video', yt_video_count: ' clips', yt_live: 'En vivo', @@ -301,11 +334,14 @@ const translations = { Notes: 'Anmerkungen', Player: 'Spieler', Settings: 'Einstellungen', + ChangePassword: 'Passwortänderung', Youtube: 'Youtube', mail_ver_subject: 'Bestätigen Ihres neuen Kontos in der apps.pruss.it.', mail_ver_t1: 'Vielen Dank, dass Sie ein Konto bei My Apps erstellt haben', mail_ver_t2: 'Wir senden Ihnen einen Bestätigungscode: ', mail_ver_t3: 'Um die Verifizierung abzuschließen, loggen Sie sich ein und geben Sie diesen Code ein.', + mail_pass_subject: 'Ihr Passwort wurde geändert', + mail_pass_t1: 'Das Passwort für Ihr apps.pruss.it-Konto wurde erfolgreich geändert.', verification_mail_error: 'Fehler beim Senden der E-Mail mit dem Bestätigungscode', verification_error: 'Fehler bei der Benutzerüberprüfung', verification_title: 'Ein letzter Schritt bleibt!', @@ -343,6 +379,14 @@ const translations = { player_playlist_default: 'Standardliste', player_item_playing: 'Spiele auf dem Spieler', player_item_enqueued: 'Zur Play Queue hinzugefügt', + change_password_current: 'Aktuelles Passwort', + change_password_new: 'Neues Passwort', + change_password_confirm: 'Wiederhole neues Passwort', + change_password_changed: 'Passwort erfolgreich geändert', + change_password_wrong_current: 'Falsches aktuelles Passwort', + change_password_wrong_new: 'Neue Passwörter stimmen nicht überein, Neue Passwörter passen nicht', + change_password_same_password: 'Das neue Passwort darf nicht mit dem vorherigen Passwort identisch sein', + change_password_error: 'Fehler beim Ändern des Passworts, Fehler beim Passwort ändern', yt_video: 'Video', yt_video_count: ' Clips', yt_live: 'Live', -- cgit v1.2.3