Skip to content

Commit 4019473

Browse files
claude[bot]rubenfiszelalpetric
authored
[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 <[email protected]> * 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 <[email protected]> * revert users_ee * ee repo ref --------- Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com> Co-authored-by: rubenfiszel <[email protected]> Co-authored-by: alpetric <[email protected]> Co-authored-by: Alex Petric <[email protected]>
1 parent 6ffb40b commit 4019473

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

backend/ee-repo-ref.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
32039f675060b5996951708368bdefe14278d5cd
1+
4e43a2569abd9b80c8fdf98b75aeca7ba52d2caa

backend/windmill-api/openapi.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,9 @@ paths:
377377
type: string
378378
company:
379379
type: string
380+
skip_email:
381+
type: boolean
382+
description: Skip sending email notifications to the user
380383
required:
381384
- email
382385
- password

backend/windmill-api/src/users.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,7 @@ pub struct NewUser {
334334
pub super_admin: bool,
335335
pub name: Option<String>,
336336
pub company: Option<String>,
337+
pub skip_email: Option<bool>,
337338
}
338339

339340
#[derive(Deserialize)]

0 commit comments

Comments
 (0)