Wording change from 'password' to 'borg passphrase' (#311)

Fixes #309. Avoid confusion with SSH private key password.
This commit is contained in:
Hofer-Julian 2019-06-22 03:35:53 +02:00 committed by Manuel Riel
parent eadf51fe9e
commit d48bdba593
3 changed files with 3 additions and 3 deletions

View File

@ -113,7 +113,7 @@
<item row="2" column="0">
<widget class="QLabel" name="label_3">
<property name="text">
<string>Password:</string>
<string>Borg passphrase:</string>
</property>
</widget>
</item>

View File

@ -115,7 +115,7 @@ class AddRepoWindow(AddRepoBase, AddRepoUI):
if self.__class__ == AddRepoWindow:
if self.values['encryption'] != 'none':
if len(self.values['password']) < 8:
self._set_status(self.tr('Please use a longer password.'))
self._set_status(self.tr('Please use a longer passphrase.'))
return False
return True

View File

@ -22,7 +22,7 @@ def test_repo_add_failures(app, qtbot, mocker, borg_json_output):
qtbot.keyClicks(add_repo_window.repoURL, 'bbb.com:repo')
qtbot.mouseClick(add_repo_window.saveButton, QtCore.Qt.LeftButton)
assert add_repo_window.errorText.text() == 'Please use a longer password.'
assert add_repo_window.errorText.text() == 'Please use a longer passphrase.'
def test_repo_add_success(app, qtbot, mocker, borg_json_output):