mirror of
https://github.com/pelican-dev/panel.git
synced 2026-02-24 11:20:41 +03:00
Enabling OAuth on old installations is bugged due to null oauth column for old users. #207
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @IxPrumxI on GitHub (Dec 3, 2024).
Current Behavior
If a panel was installed before #386 and users were created beforehand. The users will have a null oauth value in the database instead of an empty array. Which causes the panel to 500 when accessing edit profile page.
Expected Behavior
When migrating from an old database where oauth wasn't present. Set the value for all current users to [].
Steps to Reproduce
Migrate a pterodactyl panel with created users to pelican. Or a pelican panel before #386 was introduced.
Add any OAuth provider.
Try to access https://panel.example.com/admin/profile.
Panel Version
1.0.0-beta14 with #750 applied
Wings Version
1.0.0-beta7
Games and/or Eggs Affected
No response
Docker Image
No response
Error Logs
Is there an existing issue for this?
@rmartinoscar commented on GitHub (Dec 3, 2024):
Does this fix it ?
@IxPrumxI commented on GitHub (Dec 3, 2024):
Yes it's fixed now 🎉