Fix comment
This commit is contained in:
parent
0d7d9e590b
commit
ef4eba7cdd
4 changed files with 13 additions and 13 deletions
|
@ -263,7 +263,7 @@ class PyiCloudService(object):
|
||||||
return request.json().get('devices')
|
return request.json().get('devices')
|
||||||
|
|
||||||
def send_verification_code(self, device):
|
def send_verification_code(self, device):
|
||||||
""" Requests that a verification code is sent to the given device"""
|
"""Requests that a verification code is sent to the given device."""
|
||||||
data = json.dumps(device)
|
data = json.dumps(device)
|
||||||
request = self.session.post(
|
request = self.session.post(
|
||||||
'%s/sendVerificationCode' % self._setup_endpoint,
|
'%s/sendVerificationCode' % self._setup_endpoint,
|
||||||
|
@ -273,7 +273,7 @@ class PyiCloudService(object):
|
||||||
return request.json().get('success', False)
|
return request.json().get('success', False)
|
||||||
|
|
||||||
def validate_verification_code(self, device, code):
|
def validate_verification_code(self, device, code):
|
||||||
""" Verifies a verification code received on a trusted device"""
|
"""Verifies a verification code received on a trusted device."""
|
||||||
device.update({
|
device.update({
|
||||||
'verificationCode': code,
|
'verificationCode': code,
|
||||||
'trustBrowser': True
|
'trustBrowser': True
|
||||||
|
|
Loading…
Reference in a new issue