cosmocode/dokuwiki-plugin-oauth

ArgumentCountError when logging in

Opened this issue · 1 comments

Issue Description

There is an error while logging. I don't know what caused it, as there is argument count error for calling sprintf:

ArgumentCountError: 3 arguments are required, 2 given
/bitnami/dokuwiki/lib/plugins/oauth/helper.php(123)
#0 /bitnami/dokuwiki/lib/plugins/oauth/helper.php(123): sprintf()
#1 /bitnami/dokuwiki/lib/plugins/oauth/auth.php(51): helper_plugin_oauth->showException()
#2 /opt/bitnami/dokuwiki/inc/auth.php(102): auth_plugin_oauth->trustExternal()
#3 /opt/bitnami/dokuwiki/inc/init.php(238): auth_setup()
#4 /opt/bitnami/dokuwiki/doku.php(38): require_once('...')
#5 {main}

image

I guess I know, which message caused it. It is this message:

$lang['authnotenabled'] = 'The account associated with your email address has not enabled logging in with %s. Please login by other means and enable it in your profile.';

In czech language, there are two specifiers, whereas in english, there are only one:

$lang['authnotenabled'] = 'Uživatelský účet spojený s vaší e-mailovou adresou nemá povolené přihlašování službou %s. Prosím přihlašte se jinou metodou a povolte přihlašování službou %s ve svém profilu