node.js - Why wikijs didn't assign user with google self registration?
问题描述
I'm using docker compose with wikijs 2.5.201 and postgresql 13
I have an error when a user login with automatic registration.
I set up google oath in my wiki properly, 1:1 with wikijs docx.
When user is not in database, then wiki create wikijs profile for him, but it didn't assign him to group which i specified in "sefl registration" section.
i got errors only in postgresql:
[48] ERROR: insert or update on table "userGroups" violates foreign key constraint "usergroups_groupid_foreign"
[48] DETAIL: Key (groupId)=(3) is not present in table "groups".
[48] STATEMENT: insert into "userGroups" ("groupId", "userId") values ($1, $2), ($3, $4) returning "groupId"
解决方案
推荐阅读
- javascript - 单击按钮时未显示引导加载图标
- javascript - 对javascript中的do while循环感到困惑
- java - Firebase 功能不适用于物理设备,但适用于模拟器
- javascript - 协助解决 Javascript 问题(培训中的学生)
- python - 数据框从旧行和旧列转换为具有新列的一行
- sql - if else sql中的情况
- python - ValueError:模型的特征数量必须与输入匹配。模型 n_features 为 11,输入 n_features 为 2
- html - js打印只能在手机模式下打开,如何在pc模式下打印?
- c++ - c++ 错误:没有匹配的函数来调用我的图形代码的...
- r - print(list(1,2,3)) 又长又丑;如何使用 print 打印列表 [即,无需在 print 与 paste0 之间切换的漂亮打印]