diff options
author | Kali Kaneko <kali@leap.se> | 2015-09-18 13:27:37 -0400 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2015-09-18 13:36:35 -0400 |
commit | 978cbcc4c124fe3dcf05283d0790b828e072be25 (patch) | |
tree | 35093953549056458ad6d58d3861fc1189e8790f /src/leap/bitmask/gui/passwordwindow.py | |
parent | c110760ac5b710dd7220e639f3c3e25acd43a560 (diff) |
[bug] correctly return expected value for methods that check services
these methods were returning None, and therefore breaking soledad
password change (since it checks whether mail is enabled before changing
soledad pass after srp pass change).
- Resolves: #7470
Diffstat (limited to 'src/leap/bitmask/gui/passwordwindow.py')
-rw-r--r-- | src/leap/bitmask/gui/passwordwindow.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/leap/bitmask/gui/passwordwindow.py b/src/leap/bitmask/gui/passwordwindow.py index 94cf25da..219a5634 100644 --- a/src/leap/bitmask/gui/passwordwindow.py +++ b/src/leap/bitmask/gui/passwordwindow.py @@ -203,6 +203,12 @@ class PasswordWindow(QtGui.QDialog, Flashable): new_password = self.ui.new_password_lineedit.text() logger.debug("SRP password changed successfully.") + # FIXME ---- both changes need to be made atomically! + # if there is some problem changing password in soledad (for instance, + # it checks for length), any exception raised will be lost and we will + # have an inconsistent state between soledad and srp passwords. + # We need to implement rollaback. + if self.is_soledad_needed(): self._backend.soledad_change_password(new_password=new_password) else: |