-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from SendSafely/v3.0.8
v3.0.8
- Loading branch information
Showing
11 changed files
with
298 additions
and
215 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
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 |
---|---|---|
@@ -1,27 +1,35 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
|
||
namespace SendSafely.Exceptions | ||
{ | ||
/// <summary> | ||
/// Thrown when two factor authentication is required. The exception contains a ValidationToken parameter that must be used when validating the 2FA Code. | ||
/// </summary> | ||
[Serializable] | ||
public class TwoFactorAuthException : BaseException | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
|
||
namespace SendSafely.Exceptions | ||
{ | ||
/// <summary> | ||
/// Thrown when two factor authentication is required. The exception contains a ValidationToken parameter that must be used when validating the 2FA Code. | ||
/// </summary> | ||
[Serializable] | ||
public class TwoFactorAuthException : BaseException | ||
{ | ||
|
||
private String _validationToken; | ||
private String _twoFaType; | ||
|
||
public TwoFactorAuthException(String validationToken) | ||
public TwoFactorAuthException(String validationToken, String twoFaType) | ||
{ | ||
this._validationToken = validationToken; | ||
this._validationToken = validationToken; | ||
this._twoFaType = twoFaType; | ||
} | ||
|
||
public String ValidationToken | ||
{ | ||
get { return _validationToken; } | ||
set { _validationToken = value; } | ||
} | ||
} | ||
} | ||
} | ||
|
||
public String TwoFaType | ||
{ | ||
get { return _twoFaType; } | ||
set { _twoFaType = value; } | ||
} | ||
} | ||
} |
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
Oops, something went wrong.