-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Retrieving User object using expression
- Loading branch information
1 parent
b6f343a
commit a87e941
Showing
8 changed files
with
65 additions
and
64 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
7 changes: 7 additions & 0 deletions
7
Lombiq.HelpfulExtensions/Extensions/Workflows/Models/GenerateResetPasswordTokenResult.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 @@ | ||
namespace Lombiq.HelpfulExtensions.Extensions.Workflows.Models; | ||
|
||
public class GenerateResetPasswordTokenResult | ||
{ | ||
public string ResetPasswordToken { get; set; } | ||
public string ResetPasswordUrl { get; set; } | ||
} |
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
5 changes: 4 additions & 1 deletion
5
...pfulExtensions/Extensions/Workflows/ViewModels/GenerateResetPasswordTokenTaskViewModel.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 |
---|---|---|
@@ -1,8 +1,11 @@ | ||
using System.ComponentModel.DataAnnotations; | ||
|
||
namespace Lombiq.HelpfulExtensions.Extensions.Workflows.ViewModels; | ||
|
||
public class GenerateResetPasswordTokenTaskViewModel | ||
{ | ||
public string UserPropertyKey { get; set; } | ||
[Required] | ||
public string UserExpression { get; set; } | ||
public string ResetPasswordTokenPropertyKey { get; set; } | ||
public string ResetPasswordUrlPropertyKey { get; set; } | ||
} |
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
18 changes: 9 additions & 9 deletions
18
Lombiq.HelpfulExtensions/Views/Items/GenerateResetPasswordTokenTask.Fields.Edit.cshtml
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,20 +1,20 @@ | ||
@model Lombiq.HelpfulExtensions.Extensions.Workflows.ViewModels.GenerateResetPasswordTokenTaskViewModel | ||
|
||
<div class="mb-3" asp-validation-class-for="UserPropertyKey"> | ||
<label asp-for="UserPropertyKey">@T["User Property Key"]</label> | ||
<input type="text" asp-for="UserPropertyKey" class="form-control"></input> | ||
<span asp-validation-for="UserPropertyKey"></span> | ||
<span class="hint">@T["Key of the property in the Workflow context dictionary that contains the user's ID or the User object. If it's empty, it'll try to find the User object in the Workflow input. With Liquid support."]</span> | ||
<div class="mb-3" asp-validation-class-for="UserExpression"> | ||
<label asp-for="UserExpression">@T["User Expression"]</label> | ||
<input type="text" asp-for="UserExpression" class="form-control code" /> | ||
<span asp-validation-for="UserExpression"></span> | ||
<span class="hint">@T["Enter a JavaScript expression that evaluates to the User object."]</span> | ||
</div> | ||
<div class="mb-3" asp-validation-class-for="ResetPasswordTokenPropertyKey"> | ||
<label asp-for="ResetPasswordTokenPropertyKey">@T["Reset Password Token Property Key"]</label> | ||
<input type="text" asp-for="ResetPasswordTokenPropertyKey" class="form-control"></input> | ||
<input type="text" asp-for="ResetPasswordTokenPropertyKey" class="form-control" /> | ||
<span asp-validation-for="ResetPasswordTokenPropertyKey"></span> | ||
<span class="hint">@T["Key of the property in the Workflow context where this Task will set the reset password token to. Optionally, leave it empty and set the URL field. With Liquid support."]</span> | ||
<span class="hint">@T["Optional key of the property in the Workflow context where this Task will set the reset password token to."]</span> | ||
</div> | ||
<div class="mb-3" asp-validation-class-for="ResetPasswordUrlPropertyKey"> | ||
<label asp-for="ResetPasswordUrlPropertyKey">@T["Reset Password URL Property Key"]</label> | ||
<input type="text" asp-for="ResetPasswordUrlPropertyKey" class="form-control"></input> | ||
<input type="text" asp-for="ResetPasswordUrlPropertyKey" class="form-control" /> | ||
<span asp-validation-for="ResetPasswordUrlPropertyKey"></span> | ||
<span class="hint">@T["Key of the property in the Workflow context where this Task will set the reset password URL to. Optionally, leave it empty and set the token field. With Liquid support."]</span> | ||
<span class="hint">@T["Optional key of the property in the Workflow context where this Task will set the reset password URL to."]</span> | ||
</div> |
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