MCPcopy Create free account
hub / github.com/alphagov/notifications-api / check_code

Method check_code

app/models.py:1488–1489  ·  view source on GitHub ↗
(self, cde)

Source from the content-addressed store, hash-verified

1486
1487 @code.setter
1488 def code(self, cde):
1489 self._code = hashpw(cde)
1490
1491 def check_code(self, cde):
1492 return check_hash(cde, self._code)

Callers 2

get_user_codeFunction · 0.80
test_send_user_sms_codeFunction · 0.80

Calls 1

check_hashFunction · 0.90

Tested by 1

test_send_user_sms_codeFunction · 0.64