This is the good stuff.
LNURL Auth needs to replace everything it can.
reply
this is the way
reply
Does this run a lightning node on the server?
reply
reply
My site's (bitcoinmaxinews.com) PHP version is higher than 7.4, but I get this msg when I want to install the plugin from WP plugins:
"This plugin does not work with your version of PHP. Learn more about updating PHP." Is there a solution for this?
Another question: Will this plugin allow me to only allow people to log in via Lightning? Can I also charge a small fee for it to block spammers?
reply
Hey, thank you for reaching out.
As for now you need to have at least PHP 8.0.15 running on your server.
Yes, you have the possibility for LNURL Auth only on your wp-login.php page.
At the moment it's not possible to charge a fee to use LNURL Auth. I will check this out. Thank you for the input.
Anyway, if you notice a spammer, you have the possibility to ban the account by copy-pasting the linkingKey from the user edit screen to the banlist in the plugin settings page.
reply
Lol, I was just about to post and ask if such a thing exists... Great share!
reply
Interesting, I'll try it.
reply
Where I need to click to donate this kind of nice post?!?
reply
This is nice. Good job.
reply
very cool, is there an easy way to implement lnurl-auth functionality on other site hosting platforms like webflow?
reply
Sorry I have no idea about webflow. But yes, ther should be definitively a way for it. LNURL Auth is very easy to implement. Check out the Lightning Document #4 https://github.com/lnurl/luds/blob/luds/04.md
reply
I'm not sure if my WP is acting up but is there a setting that I am missing to allow those posting a comment to use this? I tried out the demo and want to set up the same on our site
reply
I'm not sure if I get your question. You want to provide LNURL Auth to existing users?
reply
I managed to get it to work, like your demo, but when you login, you need to refresh the page a second time before you can comment, any idea what the issue could be?
reply
Hey, can you update your plugin and check if it works now? ⚡️
reply
Anyway, you need to set a valid URL in the plugin settings for users visiting wp-login.php directly. With the updated version, the plugin checks the redirect_to query parameter. The redirect_to query parameter is set, if a user clicks on "login" anywhere on your site. So if someone clicks on "login" from a post, he will be redirected back to the post after authentication.
reply
Cool! Thank you for reaching out. Have you altered the plugin settings? What does your redirect URL look like?
reply
Yes I did, I removed the redirect to the homepage because I wanted the user to remain on the article they wish to coment on
reply
Hm I guess this wont work for now. I will work on this feature. Thank you for the input!
reply
Or you could probably add the plugin shortcode in your footer php on posts with a dynamic redirect attribute for the current url.
reply
A demo is linked in the plugin description 👍
reply