mirror of
https://git.zx2c4.com/cgit
synced 2025-07-16 13:14:32 +02:00
auth-filters: do not crash on nil username
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
parent
93a2c33051
commit
c4d23d02ec
1 changed files with 1 additions and 1 deletions
|
@ -106,7 +106,7 @@ local lualdap = require("lualdap")
|
|||
|
||||
function gentoo_ldap_user_groups(username, password)
|
||||
-- Ensure the user is alphanumeric
|
||||
if username:match("%W") then
|
||||
if username == nil or username:match("%W") then
|
||||
return nil
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue