mirror of
https://github.com/pelican-dev/panel.git
synced 2026-02-25 11:20:56 +03:00
[PR #1573] [MERGED] Auto create missing users when using oauth #1462
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?
📋 Pull Request Information
Original PR: https://github.com/pelican-dev/panel/pull/1573
Author: @Boy132
Created: 8/4/2025
Status: ✅ Merged
Merged: 8/7/2025
Merged by: @Boy132
Base:
main← Head:boy132/auto-create-oauth-user📝 Commits (9)
1a9ff89add option to automatically create missing users when using oauth to login52379a8use service to create the user84bf981make sure username and email are valid4c4369fMerge remote-tracking branch 'upstream/main' into boy132/auto-create-oauth-userfa24729add translation to toggle1e11f47rename function539f8d9let service create random username7ceee67always validate usernameb313a29small cleanup📊 Changes
6 files changed (+80 additions, -26 deletions)
View changed files
📝
app/Extensions/OAuth/OAuthSchemaInterface.php(+2 -0)📝
app/Extensions/OAuth/Schemas/OAuthSchema.php(+20 -0)📝
app/Http/Controllers/Auth/OAuthController.php(+46 -19)📝
app/Services/Subusers/SubuserCreationService.php(+0 -7)📝
app/Services/Users/UserCreationService.php(+11 -0)📝
lang/en/admin/setting.php(+1 -0)📄 Description
Adds a new option to all providers to automatically create (& link) missing users. This is turned off by default.
These users will still recieve a "Account created" mail with a password reset link, if they wish to also setup a panel password.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.