Saturday, 25 April 2020

Toggle Checkbox in Lightning Aura Component

Toggle Lightning Component:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
<!--Toggle.cmp-->
<aura:component>
    <aura:attribute name="toggleValue" type="String"/>

  <label class="slds-checkbox_toggle slds-grid">
     <span>Save File in Salesforce related to Task. </span>
                            <ui:inputCheckbox aura:id="chkbox" class="slds-input"/>
     <span id="toggle-desc" class="slds-checkbox_faux_container" aria-live="assertive">
     <span class="slds-checkbox_faux"></span>
     <span class="slds-checkbox_on">Enabled</span>
     <span class="slds-checkbox_off">Disabled</span>
     </span>
  </label>
</aura:component>

Toggle Lightning Component JS Controller:

1
2
3
4
5
6
7
8
<!--ToggleController-->

({
    selectChange : function(cmp, event, helper) {
        var checkToggleVal = cmp.find("chkbox").get("v.value");
        alert(checkToggleVal);
    }
})

Monday, 6 April 2020

How to Register Google reCAPTCHA for Website and Android?


Introducing reCAPTCHA v3

What is reCAPTCHA?

reCAPTCHA is a free service that protects your website from spam and abuse. reCAPTCHA uses an advanced risk analysis engine and adaptive challenges to keep automated software from engaging in abusive activities on your site. It does this while letting your valid users pass through with ease.

We are excited to introduce reCAPTCHA v3, which helps you detect abusive traffic on your website without any user friction. It returns a score based on the interactions with your website and provides you more flexibility to take appropriate actions. See the blog for more details.

The reCAPTCHA advantage

Advanced Security
reCAPTCHA protects and defends

reCAPTCHA is built for security. Armed with state-of-the-art technology, reCAPTCHA is always at the forefront of spam and abuse fighting trends so it can provide you an unparalleled view into abusive traffic on your site.

Ease of use
Easy for People. Hard for Bots.

Purposefully designed. And actively aware. reCAPTCHA knows when to be easy on people and hard on bots.

Creation of Value
Help everyone, everywhere - One CAPTCHA at a time.

Hundreds of millions of CAPTCHAs are solved by people every day. reCAPTCHA makes positive use of this human effort by channeling the time spent solving CAPTCHAs into annotating images and building machine-learning datasets. This in turn helps improve maps and solve hard AI problems.

Please follow these steps to register the Google reCaptcha.

Step 1. Click Here to reCaptcha Register. If asked to log in then please log in with your Google Gmail Account.

Step 2. Fill in all the fields and accept the T&C (After Verify).

Step 3. Submit the form.

Step 4. When you will submit your form then you will get a new window where will your two keys.
          SITE KEY - Use this site key in the HTML code your site serves to users.
           For Client Side Integration.

           SECRET KEY - Use this secret key for communication between your site and reCAPTCHA.
          For Server Side Integration.

Total Pageviews