跳至主要內容
  • 登入
  • 註冊
WordPress.org

Taiwan 正體中文

  • 佈景主題目錄
  • 外掛目錄
  • 最新消息
  • 技術支援
  • 關於我們
  • 團隊
  • 取得 WordPress
取得 WordPress

外掛目錄

  • 我的最愛
  • Beta 版測試
  • 開發者資訊
下載

EthPress – Web3 Login

由 Lynn (lynn.mvp at tutanota dot com), ethereumicoio 開發
  • 詳細資料
  • 使用者評論
  • 安裝方式
  • 開發資訊
技術支援

外掛說明

The EthPress Web3 Login WordPress Plugin adds a capability to connect with cryptocurrency wallets such as MetaMask for Ethereum, Binance Smart Chain (BSC), Polygon (MATIC) or any other EVM-compatible blockchain, and wallets that support WalletConnect QR code. Adds a button to WordPress login screen that will let users securely log in with their crypto wallet.

Add the capability to log in with cryptocurrency wallets such as MetaMask for Ethereum, and wallets that support WalletConnect QR code. Adds a button to WordPress login screen that will let users securely log in with their crypto wallet.

In the background, a regular WordPress user account is created, so existing plugins and customizations will have no problem working along.

The EthPress NFT Access Add-On can be used to control access for WooCommerce products, simple pages and posts.

Features

  • A web3 login button is added to your login screen automatically
  • Use the EthPress widget for maximum ease
  • A shortcode [ethpress_login_button] can be used to display the Login button anywhere
  • A shortcode [ethpress_link_button] can be used to display the Link accounts button anywhere
  • Local signature verification. To verify signatures locally with JavaScript, see this guide please.

Features PRO

The EthPress PRO version is required to use these features. Free 7 days Trial is available!

  • Managed Verification Service.
  • EthPress login button on a WooCommerce Login, Register and Checkout Forms.
  • The [ethpress_account] short code can be used to display the current user’s address logged with.
  • Buttons labels text can be changed in plugin settings
  • WooCommerce Account Details show Link Wallet button setting
  • The Redirect URL setting can be used to set an URL of a page to redirect after a successful login

The NFT Token based access control for the WooCommerce products, simple pages and posts can be done with the EthPress NFT Access Add-On. Free 7 days Trial is available!

Integrations

  • The Ultimate Member plugin is supported

EthPress NFT Access Add-On Features

Check user NFT authentication control (non-fungible token, erc-721 and erc-1155) ownership.
The EthPress NFT Access Add-On is perfect for blocking users access to a Page, a Post and a WooCommerce Product page, if they don’t own a certain NFT token.

Free 7 days Trial is available

  • Site wide NFT verification requirement to register or login
  • Restrict access to a Page to some NFT token owners only
  • Restrict access to a Post to some NFT token owners only
  • Restrict access to a WooCommerce Product to some NFT token owners only
  • Shortcode to display your access level: [ethpress_nft_access_addon_nft product_id=”1337″]
  • ERC721 and ERC1155 non-fungible token standards are supported

Integrations

  • LearnPress LMS courses access can be granted with NFT token
  • Tutor LMS courses access can be granted with NFT token
  • Ethereum Wallet plugin generated accounts are also tested
  • The ethpress_nft_access_get_user_accounts filter can be used to add wallets for testing:

    add_filter('ethpress_nft_access_get_user_accounts', function($accounts) {
        $more_accounts = get_more_accounts();
        return array_merge($accounts, $more_accounts);
    });
    

Disclaimer

By using this free plugin you accept all responsibility for handling the account balances for all your users.

Under no circumstances is ethereumico.io or any of its affiliates responsible for any damages incurred by the use of this plugin.

Every effort has been made to harden the security of this plugin, but its safe operation depends on your site being secure overall. You, the site administrator, must take all necessary precautions to secure your WordPress installation before you connect it to any live wallets.

You are strongly advised to take the following actions (at a minimum):

  • Educate yourself about cold and hot cryptocurrency storage
  • Obtain hardware wallet to store your coins
  • Educate yourself about hardening WordPress security
  • Install a security plugin such as Jetpack or any other security plugin
  • Enable SSL on your site if you have not already done so.

By continuing to use the EthPress plugin, you indicate that you have understood and agreed to this disclaimer.

Hooks

These hooks can be used to add your custom logic after user logged in or linked an account using the EthPress plugin functionality.

The login_redirect hook is a standard WordPress hook you can use to customize the page user should be redirected after login.

The EthPress PRO version has a feature to configure it on the plugin settings page. Free 7 days Trial is available!

/**
 * Fires after every login attempt.
 *
 * @param WP_User|WP_Error $user WP_User on success, WP_Error on failure.
 * @param (string|false) $provider One of 'metamask', 'walletconnect', false.
 */
do_action( 'ethpress_login', $user, $provider );

/**
 * Fires after every user account linking success.
 *
 * @param WP_User|WP_Error $user WP_User on success, WP_Error on failure.
 * @param (string|false) $provider One of 'metamask', 'walletconnect', false.
 */
do_action( 'ethpress_linked', $user, $provider );

/**
 * Filters the login redirect URL.
 *
 * @param string           $redirect_to           The redirect destination URL.
 * @param string           $requested_redirect_to The requested redirect destination URL passed as a parameter.
 * @param WP_User|WP_Error $user                  WP_User object if login was successful, WP_Error object otherwise.
 */
$redirect_to = apply_filters( 'login_redirect', $redirect_to, $requested_redirect_to, $user );

/**
 * For additional checks in addons
 *
 * @since 1.6.0
 *
 * @param \losnappas\Ethpress\Address $address.
 * @return \losnappas\Ethpress\Address|\WP_Error Return \WP_Error if address doesn't fulfill some condition.
 */
$address = apply_filters('ethpress_login_address', $address);

/**
 * For additional checks in addons
 *
 * @since 1.6.0
 *
 * @param string           $redirect_to           The redirect destination URL.
 * @param string           $requested_redirect_to The requested redirect destination URL passed as a parameter.
 * @param WP_User|WP_Error $user                  WP_User object if login was successful, WP_Error object otherwise.
 */
$redirect_to = apply_filters('ethpress_login_redirect', $redirect_to, $requested_redirect_to, $user);

螢幕擷圖

  • Login flow.
  • Widget included.
  • WooCommerce Login Form display.
  • WooCommerce Login Form display settings.
  • The EthPress NFT Access Add-On page settings.
  • The EthPress NFT Access Add-On settings.
  • The EthPress NFT Access Add-On site wide settings.
  • NFT Access Granted message on the All cources page LearnPress LMS
  • Buy NFT token to access message on a cource page LearnPress LMS
  • NFT Access Granted message on a cource page LearnPress LMS
  • NFT Access settings on a cource page LearnPress LMS
  • NFT Access settings for LearnPress LMS
  • NFT Access Granted message on the All cources page Tutor LMS
  • NFT Access Granted message on a cource page Tutor LMS
  • NFT Access settings for Tutor LMS
  • The Ultimate Member EthPress Button support
  • The Ultimate Member EthPress Button edit dialog
  • The Ultimate Member EthPress Button on the Login page
  • The Ultimate Member EthPress Button on the Register page
  • The Ultimate Member EthPress Link Account Button on the Profile Edit page
  • The Ultimate Member EthPress Account display on the Profile page

安裝方式

Use WordPress’ Add New Plugin feature, search “EthPress”,

or

  1. Upload this folder (on WordPress.org, not GitLab) to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress

常見問題集

Can NFT token ownerhip restriction be applied?

The NFT Token based access control for the WooCommerce products, simple pages and posts can be done with the EthPress NFT Access Add-On. Free 7 days Trial is available!

“Cannot log you in; you have not registered”

EthPress 0.7.1+ respects the “Anyone can register” WordPress setting, so you have to enable that in Settings->General.

The modal classes keep changing

Use selectors like #web3-login-root button.web3login-metamask, instead of the svelte-12345.

How does it work?

The outline is described in this TopTal post by Amaury Martiny.

Instead of using databased nonces, we use WordPress nonces with a lifetime of 5 minutes, and append the user IP to the login message to prevent replays from elsewhere.

Fore more details, check out the extra readme.

Signature verification

When user submits a signature, it needs to be verified on server-side.

Read the “How does it work?” question.

Firstly, if you have php-gmp or php-bcmath extension installed, we’ll do it with PHP, and you can ignore the rest of this. To check, go to the EthPress settings page.

Otherwise, we do it with JavaScript. EthPress Premium comes configured with a Managed Verification Service. To verify signatures locally with JavaScript, see details: https://gitlab.com/losnappas/verify-eth-signature.

Are my coins safe?

Yes. A wallet (e.g. MetaMask) does/should not leak your private keys out into the wild, that would be madness.

What about mobile?

Mobile integration is in good condition, with WalletConnect QR code reading from wallets such as MetaMask Mobile, there is very little friction!

GDPR?

Ethpress does not store anything other than the wallet address, on your server. It will be deleted if you delete the associated user account or remove the plugin entirely.

If you’re using the default, pre-set signature verification service: it is hosted on the ethereumico.io. No data is stored here.

Check EthPress Settings page for more information.

Source code and contributing

Contributions on GitLab only, thank you.

Plugin’s source code: https://gitlab.com/losnappas/ethpress.

Signature verifier’s, which is used if no php-gmp or php-bcmath, source code: https://gitlab.com/losnappas/verify-eth-signature.

The modal is a Svelte component. Source code: https://gitlab.com/losnappas/web3-login.

Further support

On the wordpress.org support page, or on the ethereumico.io support forum.

使用者評論

Many time this plugin not work.

pariskan 2022 年 6 月 12 日
Can't make sure when not work. but many time when login will show Error: cannot detect crypto wallet and Bad nonce, please refresh. Recommend find better plugin

Great work

felix9607 2022 年 1 月 19 日
Very great plugin to enable the web3 for wordpress! Anyways it seems like a lot of users have trouble using the shortcode (me included). The widget is the only thing that enables he capabilities so far. Hope to see improvments here so the pro version might be a buy.

Thanks

pabelpm 2022 年 1 月 1 日
Esperemos que incorporen el login mediante NFT

Very promising

Pascal 2021 年 12 月 13 日
Very cool plugin with a very promising setup. The connection to Ledger Nano X is currently not working but apart from that it works incredibly well.

great plugin

willsorr 2021 年 12 月 4 日
works really well.

103290392/10 Would Recommend

42three 2021 年 11 月 7 日
Does exactly what it promises to do. Only thing to dislike is that the username generated is taken from the wallet address. Easily can be changed after some tweaking however. Lynn is a genius and so great #lynnfanforlife
閱讀全部 9 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈EthPress – Web3 Login〉的開發相關工作。

參與者
  • lynn999
  • ethereumicoio
  • Freemius

〈EthPress – Web3 Login〉外掛目前已有 1 個本地化語言版本。 感謝全部譯者為這個外掛做出的貢獻。

將〈EthPress – Web3 Login〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄。

變更記錄

2.0.0

NOTE: breaking changes! The WalletConnect Project ID should be configured in plugin settings.

  • The Wallet Connect v2 migration
  • The Web3Modal login dialog migration

1.8.0

  • The Ultimate Member plugin support is added

1.7.2

  • The ethpress_before_submit_button action is added for better addons support

1.7.1

  • Fix settings name

1.7.0

  • Allow HTML tags in the status message for better addons support

1.6.1

  • The save settings button was not shown if WooCommerce was not installed

1.6.0

  • ethpress_login_user and ethpress_login_redirect filters are added to be used in addons
  • Settings availability is adjusted for Free/Trial/PRO modes

中繼資料

  • 最新版本: 2.0.0
  • 最後更新: 1 天前
  • 啟用安裝數: 900+
  • WordPress 版本需求: 4.6 或更新版本
  • 已測試相容的 WordPress 版本: 6.1.1
  • PHP 版本需求: 5.4 或更新版本
  • 語言:

    Dutch 及 English (US).

    將這個外掛本地化為你的母語版本

  • 標籤:
    ethereumloginmetamasktrust walletweb3
  • 進階檢視

評分

檢視全部
  • 5 星 9
  • 4 星 0
  • 3 星 0
  • 2 星 0
  • 1 星 1
登入以提交評論

參與者

  • lynn999
  • ethereumicoio
  • Freemius

技術支援

最近 2 個月解決的問題:

總計 9 個問題,已解決 9 個

查看技術支援論壇

贊助

想要支援這個外掛的發展嗎?

贊助這個外掛

  • 關於我們
  • 最新消息
  • 主機託管
  • 贊助基金會
  • Swag
  • 線上說明
  • 開發者資源
  • 共同參與
  • Learn
  • 展示網站
  • 外掛目錄
  • 佈景主題目錄
  • 區塊版面配置目錄
  • WordCamp
  • WordPress.TV
  • BuddyPress
  • bbPress
  • WordPress.com
  • Matt
  • 隱私權
  • Public Code
WordPress.org
WordPress.org

Taiwan 正體中文

  • 造訪我們的 Facebook 粉絲專頁
  • 造訪我們的 Twitter 帳號
  • Visit our Instagram account
  • Visit our LinkedIn account
程式碼,如詩