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
dotnet new octheme -n "MadeWithLoveTheme" |
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
using System.ComponentModel.DataAnnotations; | |
namespace Elsa.Samples.UserRegistration.Web.Models | |
{ | |
public class RegistrationModel | |
{ | |
[Required] | |
public string Name { get; set; } | |
[Required] |
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
@inherits Microsoft.AspNetCore.Components.LayoutComponentBase | |
@Body |
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
html, | |
body, app { | |
height: 100%; | |
} | |
app { | |
display: -ms-flexbox; | |
display: flex; | |
-ms-flex-align: center; | |
align-items: center; |
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
using Elsa.Activities.Email.Extensions; | |
using Elsa.Activities.Http.Extensions; | |
using Elsa.Activities.Timers.Extensions; | |
using Elsa.Dashboard.Extensions; | |
using Elsa.Extensions; | |
using Elsa.Persistence.MongoDb.Extensions; | |
using Elsa.Samples.UserRegistration.Web.Extensions; | |
using Elsa.Samples.UserRegistration.Web.Handlers; | |
using Elsa.Samples.UserRegistration.Web.Models; | |
using Elsa.Samples.UserRegistration.Web.Services; |
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
{ | |
"Logging": { | |
"LogLevel": { | |
"Default": "Information", | |
"Microsoft": "Warning", | |
"Microsoft.Hosting.Lifetime": "Information" | |
} | |
}, | |
"AllowedHosts": "*", | |
"ConnectionStrings": { |
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
using Elsa.Samples.UserRegistration.Web.Models; | |
namespace Elsa.Samples.UserRegistration.Web.Services | |
{ | |
public interface IPasswordHasher | |
{ | |
HashedPassword HashPassword(string password); | |
HashedPassword HashPassword(string password, byte[] salt); | |
} | |
} |
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
using System.Security.Cryptography; | |
using Elsa.Samples.UserRegistration.Web.Models; | |
using Microsoft.AspNetCore.Cryptography.KeyDerivation; | |
namespace Elsa.Samples.UserRegistration.Web.Services | |
{ | |
public class PasswordHasher : IPasswordHasher | |
{ | |
public HashedPassword HashPassword(string password) | |
{ |
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
using System; | |
namespace Elsa.Samples.UserRegistration.Web.Models | |
{ | |
public class HashedPassword | |
{ | |
public HashedPassword(byte[] hashed, byte[] salt) | |
{ | |
Hashed = Convert.ToBase64String(hashed); | |
Salt = Convert.ToBase64String(salt); |
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
using System.Threading; | |
using System.Threading.Tasks; | |
using Elsa.Samples.UserRegistration.Web.Models; | |
using Elsa.Scripting.Liquid.Messages; | |
using Fluid; | |
using MediatR; | |
namespace Elsa.Samples.UserRegistration.Web.Handlers | |
{ | |
/// <summary> |