diff --git a/extension.json b/extension.json index a7fafaa..0339746 100644 --- a/extension.json +++ b/extension.json @@ -1,9 +1,10 @@ { "name": "Isekai OpenID Connect", + "namemsg": "isekai-oidc-name", "author": "hyperzlib", "version": "1.1.0", "url": "https://www.isekai.cn", - "descriptionmsg": "ucenter-desc", + "descriptionmsg": "isekai-oidc-desc", "license-name": "MIT", "type": "other", "requires": { diff --git a/i18n/en.json b/i18n/en.json index 811872b..1f3627d 100644 --- a/i18n/en.json +++ b/i18n/en.json @@ -1,4 +1,7 @@ { + "isekai-oidc-name": "Isekai OpenID Connect", + "isekai-oidc-desc": "Login by OpenID", + "isekaioidc-loginbutton": "Isekai Account Login", "isekaioidc-loginbutton-help": "Login with Isekai Project Account", "isekaioidc-login-failed": "Unknow error while OIDC", diff --git a/i18n/zh-hans.json b/i18n/zh-hans.json index c14bb55..5d0ac6e 100644 --- a/i18n/zh-hans.json +++ b/i18n/zh-hans.json @@ -1,4 +1,7 @@ { + "isekai-oidc-name": "异世界百科 OpenID Connect", + "isekai-oidc-desc": "使用OpenID登录账号", + "isekaioidc-loginbutton": "异世界百科账号登录", "isekaioidc-loginbutton-help": "使用异世界百科账号登录", "isekaioidc-login-failed": "无法登录,请求中发生错误", diff --git a/includes/ApiOidcWebhook.php b/includes/ApiOidcWebhook.php index d1d7e60..b0f0f83 100644 --- a/includes/ApiOidcWebhook.php +++ b/includes/ApiOidcWebhook.php @@ -22,7 +22,7 @@ class ApiOidcWebhook extends ApiBase { if (isset($wgIsekaiOIDC['webhookKey'])) { if (!isset($queryValues['key']) || $queryValues['key'] !== $wgIsekaiOIDC['webhookKey']) { - $this->addError('isekaioidc-api-key-invalid', '-1', [ 'provider' => $provider ]); + $this->addError('isekaioidc-api-key error', '-1', [ 'provider' => $provider ]); return; } }