Skip to content

Commit

Permalink
Added resend_confirmation_code (capless#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
circulon authored Feb 14, 2022
1 parent ba3f2f1 commit d13778e
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions pycognito/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,19 @@ def confirm_sign_up(self, confirmation_code, username=None):
self._add_secret_hash(params, "SecretHash")
self.client.confirm_sign_up(**params)

def resend_confirmation_code(self, username):
"""
Trigger resending the confirmation code message.
:param username: User's username
:return:
"""
params = {
"ClientId": self.client_id,
"Username": username,
}
self._add_secret_hash(params, "SecretHash")
self.client.resend_confirmation_code(**params)

def admin_authenticate(self, password):
"""
Authenticate the user using admin super privileges
Expand Down

0 comments on commit d13778e

Please sign in to comment.