mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-09-12 08:05:44 +00:00
[Claude PR] Add skip_email option to user creation endpoint (#5824)
* feat: add skip_email option to user creation endpoint - Added optional skip_email field to NewUser struct in users.rs - Added send_email_if_possible_with_skip function in users_ee.rs - Updated user creation flow to support conditionally skipping email notifications - Addresses issue #5823 requested by @alpetric 🤖 Generated with [Claude Code](https://claude.ai/code) Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com> * feat: add skip_email parameter to user creation endpoint OpenAPI spec Add optional skip_email boolean parameter to the /users/create endpoint schema to match the backend implementation that was added for skipping email notifications during user creation. Co-authored-by: alpetric <alpetric@users.noreply.github.com> * revert users_ee * ee repo ref --------- Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com> Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com> Co-authored-by: alpetric <alpetric@users.noreply.github.com> Co-authored-by: Alex Petric <petric.al@gmail.com>
This commit is contained in:
co-authored by
alpetric
rubenfiszel
Alex Petric
parent
6ffb40be26
commit
4019473d73
@@ -1 +1 @@
|
||||
32039f675060b5996951708368bdefe14278d5cd
|
||||
4e43a2569abd9b80c8fdf98b75aeca7ba52d2caa
|
||||
|
||||
@@ -377,6 +377,9 @@ paths:
|
||||
type: string
|
||||
company:
|
||||
type: string
|
||||
skip_email:
|
||||
type: boolean
|
||||
description: Skip sending email notifications to the user
|
||||
required:
|
||||
- email
|
||||
- password
|
||||
|
||||
@@ -334,6 +334,7 @@ pub struct NewUser {
|
||||
pub super_admin: bool,
|
||||
pub name: Option<String>,
|
||||
pub company: Option<String>,
|
||||
pub skip_email: Option<bool>,
|
||||
}
|
||||
|
||||
#[derive(Deserialize)]
|
||||
|
||||
Reference in New Issue
Block a user