misskey-dev / misskey

🌎 A completely free and open interplanetary microblogging platform 🚀
https://misskey-hub.net/
GNU Affero General Public License v3.0
10.1k stars 1.38k forks source link

enhance: メールアドレスのドメインのホワイトリストによって登録を制御する #15056

Open sakuhanight opened 15 hours ago

sakuhanight commented 15 hours ago

What

Why

14895

14926

ブラックリストだけでなくホワイトリストによって制御したい。また、APIの使用量を減らしたい。

Additional info (optional)

Checklist

github-actions[bot] commented 15 hours ago

このPRによるapi.jsonの差分

差分はこちら ```diff --- base +++ head @@ -211,6 +211,12 @@ "type": "string" } }, + "allowedEmailDomains": { + "type": "array", + "items": { + "type": "string" + } + }, "preservedUsernames": { "type": "array", "items": { @@ -389,6 +395,12 @@ "null" ] }, + "enableAutoAddBannedEmailDomain": { + "type": "boolean" + }, + "enableAllowedEmailDomainsOnly": { + "type": "boolean" + }, "enableChartsForRemoteUser": { "type": "boolean" }, @@ -650,6 +662,8 @@ "enableTruemailApi", "truemailInstance", "truemailAuthKey", + "enableAutoAddBannedEmailDomain", + "enableAllowedEmailDomainsOnly", "enableChartsForRemoteUser", "enableChartsForFederatedInstances", "enableStatsForFederatedInstances", @@ -14303,6 +14317,18 @@ "type": "string" } }, + "allowedEmailDomains": { + "type": "array", + "items": { + "type": "string" + } + }, + "enableAutoAddBannedEmailDomain": { + "type": "boolean" + }, + "enableAllowedEmailDomainsOnly": { + "type": "boolean" + }, "preservedUsernames": { "type": "array", "items": { ``` [Get diff files from Workflow Page](https://github.com/misskey-dev/misskey/actions/runs/12011067422)
codecov[bot] commented 15 hours ago

Codecov Report

Attention: Patch coverage is 32.57576% with 89 lines in your changes missing coverage. Please review.

Project coverage is 41.64%. Comparing base (eddf6a2) to head (b95fb54). Report is 2 commits behind head on develop.

Files with missing lines Patch % Lines
packages/backend/src/core/EmailService.ts 9.52% 38 Missing :warning:
packages/frontend/src/pages/admin/security.vue 0.00% 33 Missing :warning:
...kend/src/server/api/endpoints/admin/update-meta.ts 20.00% 12 Missing :warning:
packages/backend/src/core/UtilityService.ts 50.00% 3 Missing :warning:
...ges/backend/src/server/api/endpoints/admin/meta.ts 84.21% 3 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## develop #15056 +/- ## ============================================ + Coverage 19.33% 41.64% +22.31% ============================================ Files 728 1567 +839 Lines 103800 203644 +99844 Branches 991 3700 +2709 ============================================ + Hits 20066 84812 +64746 - Misses 83180 118227 +35047 - Partials 554 605 +51 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


🚨 Try these New Features: