Permalink
Browse files

Fix bug in pycroft backend

  • Loading branch information...
Georgeto committed Sep 1, 2018
1 parent 7be3c41 commit a08afcf9d86a6eb86eb9bd9452431f7a398721b0
Showing with 2 additions and 2 deletions.
  1. +2 −2 sipa/model/pycroft/user.py
@@ -137,7 +137,7 @@ def mail(self):

@mail.setter
def mail(self, new_mail):
result, status = api.change_mail(self._id, self._tmp_password, new_mail)
status, result = api.change_mail(self._id, self._tmp_password, new_mail)

if status == 401:
raise PasswordInvalid
@@ -146,7 +146,7 @@ def mail(self, new_mail):

@mail.deleter
def mail(self):
result, status = api.change_mail(self._id, self._tmp_password, new_mail=None)
status, result = api.change_mail(self._id, self._tmp_password, new_mail=None)
if status == 401:
raise PasswordInvalid
elif status == 404:

0 comments on commit a08afcf

Please sign in to comment.