Version
1.1.0
Author
psdevuk
Downloads
157
Tags
universaldashboard ud-dashboard PowershellUniversal Captcha
Created
09/03/2022
UDSliderCaptcha
Provides basic picture jigsaw slider captcha for Powershell Universal
Found this really nice simple captcha to prove a human is on the other-end of the dashboard.
Examples
Most basic example
New-UDSliderCaptcha
Custom labels
New-UDSliderCaptcha -Title "Are you human" -SliderTitle "Move the jigsaw to missing slot" -FailMessage "Bad Luck" -SuccessMessage "Great Work!"
The following example is using the style of UDButton and hiding the close button on the captcha
New-UDStyle -Style '
.show__modal {
margin: 8px;
display: -webkit-inline-box;
display: -webkit-inline-flex;
display: -ms-inline-flexbox;
display: inline-flex;
-webkit-align-items: center;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-pack: center;
-ms-flex-pack: center;
-webkit-justify-content: center;
justify-content: center;
position: relative;
box-sizing: border-box;
-webkit-tap-highlight-color: transparent;
background-color: transparent;
outline: 0;
border: 0;
margin: 0;
border-radius: 0;
padding: 0;
cursor: pointer;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
vertical-align: middle;
-moz-appearance: none;
-webkit-appearance: none;
-webkit-text-decoration: none;
text-decoration: none;
color: inherit;
font-family: "Roboto","Helvetica","Arial",sans-serif;
font-weight: 500;
font-size: 0.875rem;
line-height: 1.75;
letter-spacing: 0.02857em;
text-transform: uppercase;
min-width: 64px;
padding: 6px 16px;
border-radius: 4px;
-webkit-transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,border-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,border-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
color: inherit;
background-color: #e0e0e0;
box-shadow: 0px 3px 1px -2pxrgba(0,0,0,0.2),0px 2px 2px 0pxrgba(0,0,0,0.14),0px 1px 5px 0pxrgba(0,0,0,0.12);
border-color: currentColor;
}
.react-puzzle-confirm-button--secondary {
visibility: hidden;
}' -Content {
New-UDSliderCaptcha
}
Installation Options
Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet.
PS > Install-PSResource UDSliderCaptcha
Install within the PowerShell Universal v5 admin console. More Info
Version History
Version | Published |
---|---|
1.1.0 | 09/03/2022 |