mattv8 / yourls-ldap-plugin

Simple LDAP plugin for YOURLS
GNU General Public License v3.0
18 stars 13 forks source link

not compatible with YourLS Version 1.9.2 #31

Open VGmarkus opened 9 months ago

VGmarkus commented 9 months ago

when i try to login in with an LDAP user, i get this Error. "Couldn't add user, plugin may not be compatible with YourLS version"

its possible to make the plugin compatible with the Version 1.9.2, you are planning to update the plugin?

vemi2709 commented 5 months ago

Change the line 312 in plugin.php to $new_contents = preg_replace('/(yourls_user_passwords\s=\s[)/', '$0 ' . PHP_EOL . $user_line, $configdata, -1, $count);