History log of /dokuwiki/lib/plugins/authplain/_test/userdata.test.php (Results 1 – 3 of 3)
Revision Date Author Comments
# 195a3a7f 25-Jun-2026 Andreas Gohr <gohr@cosmocode.de>

make getUserData() fail safely on non-string input

When removing multiple users at once, plugins listening on the
AUTH_USER_CHANGE event may pass the array of user names (params[0]
for 'delete') to

make getUserData() fail safely on non-string input

When removing multiple users at once, plugins listening on the
AUTH_USER_CHANGE event may pass the array of user names (params[0]
for 'delete') to getUserData(), which crashed authplain with an
"Array to string conversion" / illegal offset error.

Guard the bundled auth backends so a non-string user fails safely
by returning false, and document that AUTH_USER_CHANGE params[0] is
a string for create/modify but a string[] for delete.

Fixes #4567

show more ...


# 1c33cec3 04-Feb-2021 Andreas Gohr <andi@splitbrain.org>

add needed type hints for phpunit8

This will break a lot of plugin tests, but can't be avoided


# 503e913f 30-Apr-2019 Anna Dabrowska <dabrowska@cosmocode.de>

authplain: Add tests for group retrieval