Skip to content

有没有切换身份认证服务的方案 #3794

Discussion options

You must be logged in to vote

在默认状态下,保持新用户与旧用户的邮箱一致即可完成自动迁移。若不能,可以先尝试低成本的做法:

  • 检查原数据表中的旧用户的email字段,记录下邮箱地址,如无值则进行填充;
  • 前往新的SSO,使用旧用户的email创建新用户,如已创建,则更改用户信息为email,同时记录下新用户的userId;
  • 检查源数据库的表nextauth_accountsproviderAccountId字段是否含有新用户的userId,如有则对该行进行删除;
  • 重新登录lobe即可完成自动链接;

补充:数据迁移有风险,请做好备份工作。

Replies: 13 comments 9 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@BiFangKNT
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@darkelfzdy
Comment options

@arvinxx
Comment options

@cy948
Comment options

@BiFangKNT
Comment options

@cy948
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@cy948
Comment options

Comment options

You must be logged in to vote
1 reply
@arvinxx
Comment options

Comment options

You must be logged in to vote
1 reply
@darkelfzdy
Comment options

Answer selected by arvinxx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
5 participants
Converted from issue

This discussion was converted from issue #3791 on September 06, 2024 12:57.