-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat:register login * feat:add register Co-authored-by: Mayue <[email protected]>
- Loading branch information
Showing
9 changed files
with
133 additions
and
24 deletions.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
...Blocks/StackSdks/Auth/Masa.BuildingBlocks.StackSdks.Auth.Contracts/Enum/SendEmailTypes.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,12 @@ | ||
// Copyright (c) MASA Stack All rights reserved. | ||
// Licensed under the MIT License. See LICENSE.txt in the project root for license information. | ||
|
||
namespace Masa.BuildingBlocks.StackSdks.Auth.Contracts.Enum; | ||
|
||
public enum SendEmailTypes | ||
{ | ||
Undefined, | ||
Verifiy, | ||
Register, | ||
ForgotPassword | ||
} |
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 |
---|---|---|
|
@@ -8,5 +8,5 @@ public enum ThirdPartyIdpTypes | |
Customize = 1, | ||
WeChat = 2, | ||
GitHub = 3, | ||
Ldap = 4, | ||
Ldap = 4, | ||
} |
12 changes: 12 additions & 0 deletions
12
...cks/StackSdks/Auth/Masa.BuildingBlocks.StackSdks.Auth.Contracts/Enum/UserRegisterTypes.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,12 @@ | ||
// Copyright (c) MASA Stack All rights reserved. | ||
// Licensed under the MIT License. See LICENSE.txt in the project root for license information. | ||
|
||
namespace Masa.BuildingBlocks.StackSdks.Auth.Contracts.Enum; | ||
|
||
public enum UserRegisterTypes | ||
{ | ||
Undefined, | ||
Account, | ||
PhoneNumber, | ||
} |
23 changes: 23 additions & 0 deletions
23
...Blocks/StackSdks/Auth/Masa.BuildingBlocks.StackSdks.Auth.Contracts/Model/RegisterModel.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,23 @@ | ||
// Copyright (c) MASA Stack All rights reserved. | ||
// Licensed under the MIT License. See LICENSE.txt in the project root for license information. | ||
|
||
namespace Masa.BuildingBlocks.StackSdks.Auth.Contracts.Model; | ||
|
||
public class RegisterModel | ||
{ | ||
public UserRegisterTypes UserRegisterType { get; set; } | ||
|
||
public string Email { get; set; } | ||
|
||
public string Password { get; set; } | ||
|
||
public string PhoneNumber { get; set; } | ||
|
||
public string Code { get; set; } | ||
|
||
public string Account { get; set; } | ||
|
||
public string Avatar { get; set; } | ||
|
||
public string DisplayName { get; set; } | ||
} |
21 changes: 21 additions & 0 deletions
21
...locks/StackSdks/Auth/Masa.BuildingBlocks.StackSdks.Auth.Contracts/Model/SendEmailModel.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,21 @@ | ||
// Copyright (c) MASA Stack All rights reserved. | ||
// Licensed under the MIT License. See LICENSE.txt in the project root for license information. | ||
|
||
namespace Masa.BuildingBlocks.StackSdks.Auth.Contracts.Model; | ||
|
||
public class SendEmailModel | ||
{ | ||
public string Email { get; set; } = ""; | ||
|
||
public SendEmailTypes SendEmailType { get; set; } = SendEmailTypes.Undefined; | ||
|
||
public SendEmailModel() | ||
{ | ||
} | ||
|
||
public SendEmailModel(string email, SendEmailTypes sendEmailType) | ||
{ | ||
Email = email; | ||
SendEmailType = sendEmailType; | ||
} | ||
} |
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