Title: LNURL Auth For WordPress
Author: joelmelon
Published: <strong>2022 年 12 月 17 日</strong>
Last modified: 2025 年 1 月 14 日

---

搜索插件

![](https://ps.w.org/lnurl-auth/assets/banner-772x250.png?rev=2835403)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://ps.w.org/lnurl-auth/assets/icon-256x256.png?rev=2835403)

# LNURL Auth For WordPress

 作者：[joelmelon](https://profiles.wordpress.org/joelmelon/)

[下载](https://downloads.wordpress.org/plugin/lnurl-auth.1.0.14.zip)

 * [详情](https://cn.wordpress.org/plugins/lnurl-auth/#description)
 * [评价](https://cn.wordpress.org/plugins/lnurl-auth/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/lnurl-auth/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/lnurl-auth/#developers)

 [支持](https://wordpress.org/support/plugin/lnurl-auth/)

## 描述

This plugin provides LNURL Auth for WordPress. Login to WordPress with Bitcoin Lightning
⚡️

### Features

With **LNURL Auth for WordPress** LNURL Auth is now available for WordPress. Add
LNURL Auth to the WordPress login form or use the shortcode `[lnurl_auth]` to use
LNURL anywhere on your site.

 * Custom Colors
 * Custom Callback URL
 * Custom Redirect URL
 * Node Bann- & Allowlist
 * Enable/Disable User Registrations
 * Naming Options for New Users
 * Set Role(s) for New Users
 * Toggle Login Options

_If the setting to create users is enabled in the plugin settings, the plugin will
automatically generate new users. Be wise, with great power comes great responsibility._

### Demo

A demo WordPress installation with LNURL Auth is available [here](https://lnurl-auth-for-wordpress.joelstuedle.ch/).

### LNURL Auth

Overall, LNURL Auth login is a convenient and secure way for users of the Lightning
Network to log into third-party services using their Lightning accounts. It allows
users to easily and securely log into services without needing to create separate
accounts or handle sensitive information. This process typically involves the user
scanning a LNURL with their Lightning wallet app.

The LNURL auth QR code or URL contains a unique and time-sensitive text string. 
This text string is sent to the visitor’s wallet. The visitor’s wallet signs this
text string with the private key and sends back the response with the signed text
string. This signature can then be validated to confirm the visitor’s identity.

Read the specs here: https://github.com/lnurl/luds/blob/luds/04.md

### Vendors

 * eza/lnurl-php: https://github.com/eza/lnurl-php
 * endroid/qr-code https://github.com/endroid/qr-code

### License

Use this code freely, widely and for free. Provision of this code provides and implies
no guarantee.
 Please respect the GPL v3 licence, which is available via http://
www.gnu.org/licenses/gpl-3.0.html

## 屏幕截图

[⌊LNURL Auth on a WordPress login page.⌉⌊LNURL Auth on a WordPress login page.⌉[

LNURL Auth on a WordPress login page.

[⌊LNURL Auth settings.⌉⌊LNURL Auth settings.⌉[

LNURL Auth settings.

## 安装

 1. Upload the `lnurl-auth` folder to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress.
 3. Check out the plugins settings page

## 评价

![](https://secure.gravatar.com/avatar/ecb98328a44d39ed68c50b6eec0bc4601e02695ad63bb5d0f1552402e277d235?
s=60&d=retro&r=g)

### 󠀁[Must have Plugin for Bitcoin Shops](https://wordpress.org/support/topic/must-have-plugin-for-bitcoin-shops/)󠁿

 [omg21](https://profiles.wordpress.org/omg21/) 2023 年 12 月 29 日

LNURL-auth is extremely powerful tool. No usernames, no passwords, and no emails.
Just login with lightning wallet. It makes every site owner safer by not storing
login information. Great work!

![](https://secure.gravatar.com/avatar/77d32bacc51fac4968c11e83b3013b72c7de277ce6da1f11968c50af97747255?
s=60&d=retro&r=g)

### 󠀁[Awesome Plugin!!!](https://wordpress.org/support/topic/awesome-plugin-6854/)󠁿

 [1of21mil](https://profiles.wordpress.org/1of21mil/) 2023 年 4 月 15 日

Awesome Plugin. Works really well. Easy integration via shortcode. Good job, well
done!

 [ 阅读所有2条评价 ](https://wordpress.org/support/plugin/lnurl-auth/reviews/)

## 贡献者及开发者

「LNURL Auth For WordPress」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ joelmelon ](https://profiles.wordpress.org/joelmelon/)

[帮助将「LNURL Auth For WordPress」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/lnurl-auth)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/lnurl-auth/)，查看[SVN仓库](https://plugins.svn.wordpress.org/lnurl-auth/)，
或通过[RSS](https://plugins.trac.wordpress.org/log/lnurl-auth/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/lnurl-auth/)。

## 更新日志

#### 1.0.14

 * Compatibility ckeck. Adapt internationalization improvements in 6.7 – load textdomain
   on `init` and fix `get_plugin_data`.

#### 1.0.13

 * Set error reporting to `false` inside auth callback function, so we do not have
   any php warnings/errors in our json response.

#### 1.0.12

 * Add `allowdynamicproperties`, remove `error_logs` and change all callback responses
   to `wp_json_encode`.

#### 1.0.11

 * Respect redirect_to query parameter on wp-login.php.

#### 1.0.1

 * Provide user object to wp_login action.

#### 1.0.0

 * Initial version.

## 额外信息

 *  版本 **1.0.14**
 *  最后更新：**1 年前**
 *  活跃安装数量 **30+**
 *  WordPress 版本 ** 6.0 或更高版本 **
 *  已测试的最高版本为 **6.7.5**
 *  PHP 版本 ** 8.0.15 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/lnurl-auth/)
 * 标签
 * [authentication](https://cn.wordpress.org/plugins/tags/authentication/)[bitcoin](https://cn.wordpress.org/plugins/tags/bitcoin/)
   [Lightning](https://cn.wordpress.org/plugins/tags/lightning/)[LNURL](https://cn.wordpress.org/plugins/tags/lnurl/)
   [login](https://cn.wordpress.org/plugins/tags/login/)
 *  [高级视图](https://cn.wordpress.org/plugins/lnurl-auth/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  2 条 5 星评价     ](https://wordpress.org/support/plugin/lnurl-auth/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/lnurl-auth/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/lnurl-auth/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/lnurl-auth/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/lnurl-auth/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/lnurl-auth/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/lnurl-auth/reviews/)

## 贡献者

 *   [ joelmelon ](https://profiles.wordpress.org/joelmelon/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/lnurl-auth/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://lnurl-auth-for-wordpress.joelstuedle.ch/)