-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ResetPassword Implementation Started
- Loading branch information
1 parent
ba2cc87
commit 331baef
Showing
9 changed files
with
123 additions
and
0 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
20 changes: 20 additions & 0 deletions
20
RosanicSocial.Domain/DTO/Request/Authentication/Password/ChangePasswordRequest.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,20 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.ComponentModel.DataAnnotations; | ||
|
||
namespace RosanicSocial.Domain.DTO.Request.Authentication.Password { | ||
public class ChangePasswordRequest { | ||
[Required] | ||
[DataType(DataType.Password)] | ||
[Display(Name = "Current Password")] | ||
public string OldPassword { get; set; } | ||
[Required] | ||
[DataType(DataType.Password)] | ||
[Display(Name = "New Password")] | ||
public string NewPassword { get; set; } | ||
[DataType(DataType.Password)] | ||
[Display(Name = "Confirm New Password")] | ||
[Compare("NewPassword", ErrorMessage = "The new password and confirmation password do not match.")] | ||
public string ConfirmPassword { get; set; } | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
RosanicSocial.Domain/DTO/Request/Authentication/Password/ForgotPasswordRequest.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,10 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.ComponentModel.DataAnnotations; | ||
|
||
namespace RosanicSocial.Domain.DTO.Request.Authentication.Password { | ||
public class ForgotPasswordRequest { | ||
[Required] | ||
public string UserName { get; set; } | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
RosanicSocial.Domain/DTO/Request/Authentication/Password/ResetForgottenPasswordRequest.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,18 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.ComponentModel.DataAnnotations; | ||
|
||
namespace RosanicSocial.Domain.DTO.Request.Authentication.Password { | ||
public class ResetForgottenPasswordRequest { | ||
[EmailAddress] | ||
public string Email { get; set; } | ||
|
||
[DataType(DataType.Password)] | ||
public string Password { get; set; } | ||
|
||
[DataType(DataType.Password)] | ||
[Compare("Password", ErrorMessage = "Password and ConfirmPassword must be the same.")] | ||
public string ConfirmPassword { get; set; } | ||
public string Token { get; set; } | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
RosanicSocial.Domain/DTO/Request/Email/EmailSendResetPasswordRequest.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,10 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
|
||
namespace RosanicSocial.Domain.DTO.Request.Email { | ||
public class EmailSendResetPasswordRequest { | ||
public string From { get; set; } | ||
public string To { get; set; } | ||
public string ConfirmationLink { get; set; } | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
RosanicSocial.Domain/DTO/Response/Authentication/Response/ChangePasswordResponse.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,7 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
|
||
namespace RosanicSocial.Domain.DTO.Response.Authentication.Response { | ||
public class ChangePasswordResponse { | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
RosanicSocial.Domain/DTO/Response/Authentication/Response/ResetForgottenPasswordResponse.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,7 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
|
||
namespace RosanicSocial.Domain.DTO.Response.Authentication.Response { | ||
public class ResetForgottenPasswordResponse { | ||
} | ||
} |