summaryrefslogtreecommitdiff
path: root/service/pixelated/account_recovery.py
diff options
context:
space:
mode:
authorAnike Arni <aarni@thoughtworks.com>2017-03-16 14:54:50 -0300
committerAnike Arni <aarni@thoughtworks.com>2017-03-16 14:54:50 -0300
commit3bc6901663c60e6b477477bd6e47e9f60fbb895b (patch)
tree9f4669ae0156ec5c06c740685a4c19fa24b0dded /service/pixelated/account_recovery.py
parentf9ab38869b29eb4560b8b8f69c1dab191adfe782 (diff)
[#1012] Extracts generation of recovery code to AccountRecovery
with @tayanefernandes
Diffstat (limited to 'service/pixelated/account_recovery.py')
-rw-r--r--service/pixelated/account_recovery.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/service/pixelated/account_recovery.py b/service/pixelated/account_recovery.py
index 39614b4c..cca88760 100644
--- a/service/pixelated/account_recovery.py
+++ b/service/pixelated/account_recovery.py
@@ -24,9 +24,9 @@ class AccountRecovery(object):
self._session = session
@inlineCallbacks
- def update_recovery_code(self, recovery_code):
+ def update_recovery_code(self):
try:
- response = yield self._session.update_recovery_code(recovery_code)
+ response = yield self._session.update_recovery_code('123')
returnValue(response)
except Exception as e:
log.warn('Something went wrong when trying to save the recovery code')