![]() |
VOOZH | about |
dotnet add package SoundInTheory.Piranha.Identity.Extensions --version 1.0.0
NuGet\Install-Package SoundInTheory.Piranha.Identity.Extensions -Version 1.0.0
<PackageReference Include="SoundInTheory.Piranha.Identity.Extensions" Version="1.0.0" />
<PackageVersion Include="SoundInTheory.Piranha.Identity.Extensions" Version="1.0.0" />Directory.Packages.props
<PackageReference Include="SoundInTheory.Piranha.Identity.Extensions" />Project file
paket add SoundInTheory.Piranha.Identity.Extensions --version 1.0.0
#r "nuget: SoundInTheory.Piranha.Identity.Extensions, 1.0.0"
#:package SoundInTheory.Piranha.Identity.Extensions@1.0.0
#addin nuget:?package=SoundInTheory.Piranha.Identity.Extensions&version=1.0.0Install as a Cake Addin
#tool nuget:?package=SoundInTheory.Piranha.Identity.Extensions&version=1.0.0Install as a Cake Tool
Module that extends some of the identity features of Piranha.
This module is still in development and not recommended for public use.
The reset password functionality uses the Piranha Emails module to send reset password emails.
Set up Email Sender in appsettings.json. SMTP or Mailgun is currently supported.
{
"PiranhaEmails": {
"Senders": {
"TestSender": {
"FromEmail": "example@example.com",
"FromName": "Mr Example",
"SendToWhiteList": [],
"SmtpSettings": {
"SmtpUser": "example@example.com",
"SmtpPassword": "password",
"SmtpServer": "smtp.gmail.com",
"SmtpPort": 465,
"UseSsl": true,
"RequiresAuthentication": true
},
//or
"MailgunSettings": {
"MailgunSendingKey": "sendingkeyhere",
"MailgunDomain": "domain.example",
"MailgunRegion": "USAorEU"
}
}
}
}
}
Add emails and identity extensions on startup
builder.AddPiranha(options =>
{
//other services here
options.UseIdentityExtensions();
options.Services.AddPiranhaEmails(builder)
.AddEmailTemplates(typeof(IdentityExtensionsModule).Assembly);
})
app.UsePiranha(options => {
//other services here
options.UsePiranhaEmails();
options.UseIdentityExtensions();
})
The contact us template should be visible in the manager. Edit as required. Uses MJML and Handlebars
Themes are a straightforward way of changing Piranha's login page. Create a theme that implements ILoginTheme
public class SoundInTheoryLoginTheme : ILoginTheme
{
public string Title { get; set; } = "Sound in Theory Admin";
public string BackgroundColor { get; set; } = "#150536";
public string ButtonColor { get; set; } = "#ea6e2a";
public string LogoPath { get; set; } = "/assets/img/piranha-login-logo.png";
public string BgPath { get; set; } = "/assets/img/piranha-login-bg.png";
public bool IncludeVersionNumber { get; set; } = false;
}
Then add to DI
options.UseIdentityExtensions();
options.Services.AddScoped<ILoginTheme, SoundInTheoryLoginTheme>();
Your theme should appear on the login page. The latest theme that is added to the service provider will be the one that is used.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0 net9.0 is compatible. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.0 | 121 | 3/19/2026 |