mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
fix(api): 🐛 Allow for forcing registrations via OpenID and disabling regular signups
This commit is contained in:
parent
8d2d9bd7fa
commit
32f71b3adf
2 changed files with 6 additions and 9 deletions
|
|
@ -192,10 +192,7 @@ export default (plugin: PluginType): void => {
|
|||
|
||||
if (!userId) {
|
||||
// Register new user
|
||||
if (
|
||||
context.get("config").signups.registration &&
|
||||
context.get("pluginConfig").allow_registration
|
||||
) {
|
||||
if (context.get("pluginConfig").allow_registration) {
|
||||
let username =
|
||||
preferred_username ??
|
||||
email?.split("@")[0] ??
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue