GithubHelp home page GithubHelp logo

andreacomo / wp-htpasswd-generator Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 1.0 112 KB

Sync your WordPress users with .htpasswd file for enabling Apache basic authentication based on file

PHP 100.00%
wordpress-users htpasswd-generator protect-resources wordpress-installation

wp-htpasswd-generator's People

Contributors

andreacomo avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

boumer

wp-htpasswd-generator's Issues

Special characters and length of passwords

Hello and thanks for your plugin.

I've noted a few issues with the password generation:

  • First, it seems that the encoding doesn't accept special characters from WordPress (such as é, è, à, etc...) and the authentication fails on the distant server.
  • My second problem is linked to the password length: one can authenticate himself by giving the first 8 characters of the password only (eg in the .htaccess window, the user User with the password Password1234 can log in by typing Password, or Password0000, or PasswordMoreTextHere, etc...)

I would greatly appreciate your help,
JulPx

I keep getting this error:

`WordPress version 5.3.4
Current theme: Neve (version 2.7.3)
Current plugin: Htpasswd Generator (version 1.1.2)
PHP version 7.2.31-1+020200514.41+debian91.gbpe2a56b
Error details

An error with the type E_ERROR was caused on rule number 25 vof the file /home/example.com/public_html/example.nl/wp-content/plugins/wp-htpasswd-generator/htpasswd-generator.php.
Error: Uncaught ArgumentCountError: Too few arguments to function cnj_htpasswd_generator_on_add(), 1 passed in /home/example.com/public_html/example.nl/wp-includes/class-wp-hook.php on line 288 and exactly 2 expected in /home/example.com/public_html/example.nl/wp-content/plugins/wp-htpasswd-generator/htpasswd-generator.php:25
Stack trace:u8
#0 /home/example.com/public_html/example.nl/wp-includes/class-wp-hook.php(288): cnj_htpasswd_generator_on_add(3)
#1 /home/example.com/public_html/example.nl/wp-includes/class-wp-hook.php(312): WP_Hook->apply_filters('', Array)
#2 /home/example.com/public_html/example.nl/wp-includes/plugin.php(478): WP_Hook->do_action(Array)
#3 /home/example.com/public_html/example.nl/wp-includes/user.php(1897): do_action('user_register', 3)
#4 /home/example.com/public_html/example.nl/wp-admin/includes/user.php(230): wp_insert_user(Array)
#5 /home/example.com/public_html/example.nl/wp-admin/user-new.php(163): edit_user()
#6 {main}
thrown`

(I have replaced my real domains with example.com and example.nl)

Is this error because the plugin isn't updated for Wordpress 5.3.4?
If this is the problem I would love to see the plugin updated. I really need something like this and I wasn't able to find any alternatives.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.