Skip to content

Commit 4a14067

Browse files
committed
1 parent 2d185dd commit 4a14067

4 files changed

Lines changed: 8 additions & 8 deletions

File tree

docs/source/examples/two_factor_auth.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
Using Two Factor Authentication with github3.py
1+
Using Two-factor Authentication with github3.py
22
===============================================
33

4-
GitHub recently added support for Two Factor Authentication to ``github.com``
4+
GitHub recently added support for Two-factor Authentication to ``github.com``
55
and shortly thereafter added support for it on ``api.github.com``. In version
66
0.8, github3.py also added support for it and you can use it right now.
77

8-
To use Two Factor Authentication, you must define your own function that will
8+
To use Two-factor Authentication, you must define your own function that will
99
return your one time authentication code. You then provide that function when
1010
logging in with github3.py.
1111

@@ -33,5 +33,5 @@ For example:
3333
g = github3.login('sigmavirus24', 'my_password',
3434
two_factor_callback=my_two_factor_function)
3535
36-
Then each time the API tells github3.py it requires a Two Factor Authentication
36+
Then each time the API tells github3.py it requires a Two-factor Authentication
3737
code, github3.py will call ``my_two_factor_function`` which prompt you for it.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
0.8.1: 2014-01-26
22
-----------------
33

4-
- Add documentation for using Two Factor Authentication
4+
- Add documentation for using Two-factor Authentication
55

66
- Fix oversight where ``github3.login`` could not be used for 2FA

src/github3/api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def login(username=None, password=None, token=None, two_factor_callback=None):
7272
:param str password: password for the login
7373
:param str token: OAuth token
7474
:param func two_factor_callback: (optional), function you implement to
75-
provide the Two Factor Authentication code to GitHub when necessary
75+
provide the Two-factor Authentication code to GitHub when necessary
7676
:returns: :class:`GitHub <github3.github.GitHub>`
7777
7878
"""
@@ -100,7 +100,7 @@ def enterprise_login(username=None, password=None, token=None, url=None,
100100
:param str token: OAuth token
101101
:param str url: URL of a GitHub Enterprise instance
102102
:param func two_factor_callback: (optional), function you implement to
103-
provide the Two Factor Authentication code to GitHub when necessary
103+
provide the Two-factor Authentication code to GitHub when necessary
104104
:returns: :class:`GitHubEnterprise <github3.github.GitHubEnterprise>`
105105
106106
"""

src/github3/github.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -953,7 +953,7 @@ def login(self, username=None, password=None, token=None,
953953
:param str token:
954954
OAuth token
955955
:param func two_factor_callback:
956-
(optional), function you implement to provide the Two Factor
956+
(optional), function you implement to provide the Two-factor
957957
Authentication code to GitHub when necessary
958958
"""
959959
if username and password:

0 commit comments

Comments
 (0)