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 11 months ago

VGmarkus commented 11 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 8 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);

mattv8 commented 2 months ago

@vemi2709 see #33 there might be a bit more to it than just changing that line. However I still need to test #33, when I find time to do so, I will bring compatibility back up with the latest version of Yourls...