rename 2FA token
This commit is contained in:
parent
c6b3d59221
commit
b2bacc9f8b
2 changed files with 6 additions and 2 deletions
|
@ -67,9 +67,13 @@ class TestStatusPage(UptimeKumaTestCase):
|
|||
}
|
||||
incident = self.api.post_incident(slug, **incident_expected)
|
||||
self.compare(incident, incident_expected)
|
||||
status_page = self.api.get_status_page(slug)
|
||||
self.compare(status_page["incident"], incident)
|
||||
|
||||
# unpin incident
|
||||
self.api.unpin_incident(slug)
|
||||
status_page = self.api.get_status_page(slug)
|
||||
self.assertIsNone(status_page["incident"])
|
||||
|
||||
# delete status page
|
||||
self.api.delete_status_page(slug)
|
||||
|
|
|
@ -839,11 +839,11 @@ class UptimeKumaApi(object):
|
|||
|
||||
# login
|
||||
|
||||
def login(self, username: str, password: str, twofa_token: str = ""):
|
||||
def login(self, username: str, password: str, token: str = ""):
|
||||
return self._call('login', {
|
||||
"username": username,
|
||||
"password": password,
|
||||
"token": twofa_token
|
||||
"token": token
|
||||
})
|
||||
|
||||
def login_by_token(self, token: str):
|
||||
|
|
Loading…
Reference in a new issue