My AuthPDO SQL statement returns all the apparently required fields: user
, name
, mail
and hash
, but in my database backend name
and mail
are optional fields that are not filled for every user.
So if a user that has not filled these details tries to log into my Dokuwiki it returns an error like this authpdo: Statement did not return 'name' attribute [auth.php:493]
Is there a way to make these two optional, or maybe find some work around to fallback on some default value via the SQL query?
Thanks.