-
Notifications
You must be signed in to change notification settings - Fork 746
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue-5308 - Change Password page invalid password status code update
- Loading branch information
1 parent
0e9fb67
commit ac6e9df
Showing
5 changed files
with
58 additions
and
1 deletion.
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
43 changes: 43 additions & 0 deletions
43
DNN Platform/Library/Entities/Users/Exceptions/InvalidPasswordException.cs
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,43 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
// See the LICENSE file in the project root for more information | ||
|
||
namespace DotNetNuke.Entities.Users | ||
{ | ||
using System; | ||
|
||
/// <summary> | ||
/// An exception class which should be used to throw exceptions when password validations fail. | ||
/// </summary> | ||
[Serializable] | ||
public class InvalidPasswordException : Exception | ||
{ | ||
/// <summary> | ||
/// Initializes a new instance of the <see cref="InvalidPasswordException"/> class. | ||
/// </summary> | ||
public InvalidPasswordException() | ||
{ | ||
} | ||
|
||
/// <summary> | ||
/// Initializes a new instance of the <see cref="InvalidPasswordException"/> class with a message. | ||
/// </summary> | ||
/// <param name="message">Exception message.</param> | ||
public InvalidPasswordException(string message) | ||
: base(message) | ||
{ | ||
} | ||
|
||
/// <summary> | ||
/// Initializes a new instance of the <see cref="InvalidPasswordException"/> class with a message and an inner exception. | ||
/// </summary> | ||
/// <param name="message">Exception message.</param> | ||
/// <param name="innerException">Inner exception to wrap.</param> | ||
public InvalidPasswordException( | ||
string message, | ||
Exception innerException) | ||
: base(message, innerException) | ||
{ | ||
} | ||
} | ||
} |
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