-
-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: IMAP Integration for 2FA [BREAKING] (#104)
* IMAP Integration * IMAP Integration * IMAP Integration * IMAP Integration * IMAP Integration * Minor changes to match current master branch * Updated to latest build * Fixed quoted out variable * Changed case from lower to cammelCase * Update to accomidate for case change * Add imaplib2 * Resolved verion issue * Delete Logger.py * Resolve version issue * Added check to circumvent late IMAP logins Intended to prevent the event in which the IMAP session is created after the email is received from a riot by adding a timeout. Also added more exceptions + integrated it with all new commits to `master`. * New exceptions for IMAP * Remove print statements * Fixed issues, as per request of Poro * Fixed API "crashing" + removed print statements see PR [#154](#154) * Fixed case issue * Refresh fix + IMAP timeout fix * Delete InvalidIMAPCredentials.py * Add files via upload * Line Endings * Fixed line endings * Remove print statement * Lock the UI updates --------- Co-authored-by: League of Poro <95635582+LeagueOfPoro@users.noreply.github.com>
- Loading branch information
1 parent
83208a7
commit 5a3f700
Showing
13 changed files
with
255 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
from Exceptions.CapsuleFarmerEvolvedException import CapsuleFarmerEvolvedException | ||
|
||
class Fail2FAException(CapsuleFarmerEvolvedException): | ||
def __init__(self): | ||
super().__init__("Unable to login with 2FA.") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
from Exceptions.CapsuleFarmerEvolvedException import CapsuleFarmerEvolvedException | ||
|
||
class FailFind2FAException(CapsuleFarmerEvolvedException): | ||
def __init__(self): | ||
super().__init__("Failed to find 2FA email.") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
from Exceptions.CapsuleFarmerEvolvedException import CapsuleFarmerEvolvedException | ||
|
||
class InvalidIMAPCredentialsException(CapsuleFarmerEvolvedException): | ||
def __init__(self): | ||
super().__init__("Invalid IMAP credentials.") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.