BlazorCaptcha 1.7.0
dotnet add package BlazorCaptcha --version 1.7.0
NuGet\Install-Package BlazorCaptcha -Version 1.7.0
<PackageReference Include="BlazorCaptcha" Version="1.7.0" />
paket add BlazorCaptcha --version 1.7.0
#r "nuget: BlazorCaptcha, 1.7.0"
// Install BlazorCaptcha as a Cake Addin #addin nuget:?package=BlazorCaptcha&version=1.7.0 // Install BlazorCaptcha as a Cake Tool #tool nuget:?package=BlazorCaptcha&version=1.7.0
Blazor-Captcha
Generates a captcha image for a Blazor Server <s>or Webassembly</s> application.
Installation
To Install
Install-Package BlazorCaptcha
or
dotnet add package BlazorCaptcha
For client-side and server-side Blazor - add script section to _Host.cshtml (head section)
<link href="_content/BlazorCaptcha/captcha.css" rel="stylesheet" />
Usage
@page "/"
@using BlazorCaptcha
<h3>Hello, world!</h3>
<Captcha @bind-CaptchaWord="@Captcha" CharNumber="@CaptchaLetters" />
<p>@Captcha</p>
@code{
private string Captcha = "";
private int CaptchaLetters = 5;
protected override Task OnInitializedAsync()
{
Captcha = BlazorCaptcha.Tools.GetCaptchaWord(CaptchaLetters);
return base.OnInitializedAsync();
}
}
<a name="ReleaseNotes"></a>Release Notes
<details open="open"><summary>Version 1.6.0</summary>
- issue #12 </details>
<details><summary>Version 1.5.0</summary>
- Add DotNet 8.0 framework target </details>
<details ><summary>Version 1.4.2</summary>
- Update nuget packages </details>
<details><summary>Version 1.4.1</summary>
- To avoid any confusion, remove 'x', 'V', 'v' chars </details>
<details><summary>Version 1.4.0</summary>
- issue #10 Characters did not always fit inside the div
- remove 'X' and '+' chars </details>
<details><summary>Version 1.3.0</summary>
- migrate to .NET 7 </details>
<details><summary>Version 1.2.4</summary>
- minor improvement </details>
<details><summary>Version 1.2.3</summary>
- Add type="button" </details>
<details><summary>Version 1.2.2</summary>
- add nuget package SkiaSharp.NativeAssets.Linux </details>
<details><summary>Version 1.2.0</summary>
- NET6, removal of the bootstrap class </details>
⚠️ Breaking changes ⚠️
<details><summary>Version 1.0.1 to 1.1.0</summary>
- Change the parameter "CaptchaWord" ⇒ "@bind-CaptchaWord"
- Add the parameter with the length of the word ex : "CharNumber="@CaptchaLetters"
- Remove the "OnRefresh" parameter </details>
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. |
-
net7.0
- Microsoft.AspNetCore.Components (>= 7.0.20)
- Microsoft.AspNetCore.Components.Web (>= 7.0.20)
- SkiaSharp (>= 3.118.0-preview.1.2)
- SkiaSharp.NativeAssets.Linux (>= 3.118.0-preview.1.2)
- SkiaSharp.NativeAssets.Linux.NoDependencies (>= 3.118.0-preview.1.2)
- SkiaSharp.Views.Blazor (>= 3.118.0-preview.1.2)
-
net8.0
- Microsoft.AspNetCore.Components (>= 8.0.11)
- Microsoft.AspNetCore.Components.Web (>= 8.0.11)
- SkiaSharp (>= 3.118.0-preview.1.2)
- SkiaSharp.NativeAssets.Linux (>= 3.118.0-preview.1.2)
- SkiaSharp.NativeAssets.Linux.NoDependencies (>= 3.118.0-preview.1.2)
- SkiaSharp.Views.Blazor (>= 3.118.0-preview.1.2)
-
net9.0
- Microsoft.AspNetCore.Components (>= 9.0.0)
- Microsoft.AspNetCore.Components.Web (>= 9.0.0)
- SkiaSharp (>= 3.118.0-preview.1.2)
- SkiaSharp.NativeAssets.Linux (>= 3.118.0-preview.1.2)
- SkiaSharp.NativeAssets.Linux.NoDependencies (>= 3.118.0-preview.1.2)
- SkiaSharp.Views.Blazor (>= 3.118.0-preview.1.2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.7.0 | 66 | 11/19/2024 |
1.6.0 | 3,820 | 3/28/2024 |
1.5.0 | 2,744 | 1/27/2024 |
1.4.2 | 1,514 | 11/15/2023 |
1.4.1 | 6,230 | 2/9/2023 |
1.4.0 | 797 | 2/5/2023 |
1.3.0 | 1,684 | 12/2/2022 |
1.2.4 | 5,253 | 8/18/2022 |
1.2.3 | 5,622 | 4/5/2022 |
1.2.2 | 653 | 3/11/2022 |
1.2.1 | 1,241 | 2/17/2022 |
1.1.0 | 8,802 | 1/16/2021 |
1.0.1 | 2,962 | 6/6/2020 |
1.0.0 | 1,177 | 6/6/2020 |
Update nuget packages