mirror of
https://github.com/netinvent/npbackup.git
synced 2025-02-24 22:44:04 +08:00
Make repo password mandatory and not null
This commit is contained in:
parent
73d802eefa
commit
88c057432f
3 changed files with 5 additions and 0 deletions
|
@ -472,6 +472,9 @@ def config_gui(config_dict: dict, config_file: str):
|
|||
if event in (sg.WIN_CLOSED, "cancel"):
|
||||
break
|
||||
if event == "accept":
|
||||
if not values['repo---password']:
|
||||
sg.PopupError(_t("config_gui.repo_password_cannot_be_empty"))
|
||||
continue
|
||||
config_dict = update_config_dict(values, config_dict)
|
||||
configuration.save_config(config_file, config_dict)
|
||||
sg.Popup(_t("config_gui.configuration_saved"), keep_on_top=True)
|
||||
|
|
|
@ -50,6 +50,7 @@ en:
|
|||
np_binary: Cannot find backup backend. Please install restic binary from restic.net
|
||||
|
||||
configuration_saved: Configuration saved
|
||||
repo_password_cannot_be_empty: Password cannot be empty
|
||||
enter_backup_admin_password: Backup admin password
|
||||
wrong_password: Wrong password
|
||||
password_updated_please_save: Password updated. Please save
|
||||
|
|
|
@ -50,6 +50,7 @@ fr:
|
|||
no_binary: Impossible de trouver le coeur de sauvegarde. Merci d'installer le binaire restic depuis restic.net
|
||||
|
||||
configuration_saved: Configuration sauvegardée
|
||||
repo_password_cannot_be_empty: Le mot de passe du dépot ne peut être vide
|
||||
enter_backup_admin_password: Mot de passe admin de sauvegarde
|
||||
wrong_password: Mot de passe érroné
|
||||
password_updated_please_save: Mot de passe mis à jour. Veuillez enregistrer
|
||||
|
|
Loading…
Reference in a new issue