Documentation

Web3 Login

WP Smart Contracts Web3 Login Feature

Web3 Login

WP Smart Contracts Web3 Login: Easy and Secure Login with Crypto Wallets [Tutorial]

The WP Smart Contracts Web3 Login feature is a groundbreaking way to simplify and secure user registration and login processes on WordPress websites. It uses cryptocurrency wallets to authenticate users, which eliminates the need for passwords and makes it more difficult for hackers to gain access to accounts.

Setup

To set up the Web3 Login feature, you first need to install and activate the WP Smart Contracts plugin. Once the plugin is activated, you can enable the Web3 Login feature in the plugin settings.

In the WP Smart Contracts setup wizard, go to step 3 and select the "Enable the crypto wallet user registration and login" option.

Select the desired user role for new registrations. We recommend the Subscriber role due to its limited privileges.

You can also choose whether to request users' email addresses during registration. For simplicity, let's start with the no-email-required option.

Click "Next" to enable your Web3 Login.

Make sure the "Anyone can register" option is enabled on your WordPress site for this to work

Learn more

Login using WordPress Forms

Once the Web3 Login feature is enabled, your WordPress users will now see the "Login with your wallet" button during login attempts. Clicking this button opens the user's crypto wallet and initiates the login process, secured by a cryptographic signature. Once the signature is complete, the user is both registered and logged in seamlessly.

Login using the Launcher

Another convenient way for users to register and log in is through the Launcher pages. Here, users can utilize the "Connect" button to access their accounts. This method aligns with their usual login and registration processes, simplifying their experience.

Login using a shortcode on any page

For added flexibility, you can place the following shortcode on any page:

[wpsc_login_user]

This will allow users to login using their crypto wallets from anywhere on your site. The process is straightforward: connect their wallet, sign the transaction, and complete the login.

Advanced Setup

In addition to the basic setup, you can also configure the Web3 Login feature to collect users' email addresses during registration and redirect users to a specific URL after they log in.

To collect users' email addresses, enable the "Collect email addresses during registration" option in the plugin settings.

To redirect users to a specific URL after they log in, enter the URL in the "Redirect URL after login" field in the plugin settings.

The WP Smart Contracts Web3 Login feature is a secure and easy way to register and login to your WordPress site using cryptocurrency wallets. The advanced setup options allow you to customize the feature to meet your specific needs.

For further support, please contact us at support@wpsmartcontracts.com.