Skip to content

Invite Email Restriction is only Client Side validated #174

Closed

Description

@imnotjames

I could be mistaken here but it looks like the invite email sending is a flag we have in the env vars but it's ONLY from the client side.

https://github.com/oss-apps/split-pro/blob/main/src/server/api/routers/user.ts#L134-L137

https://github.com/oss-apps/split-pro/blob/main/src/server/mailer.ts#L54-L67

If an administrator doesn't want the emails to be send, a user could still send invite emails if they interacted with the API directly, right?

Activity

  1. KMKoushik commented on Jan 26, 2025

    @KMKoushik
    Contributor

    yep this is a bug

  2. added a commit that references this issue on Jan 27, 2025
    7d04cc4
  3. Soulplayer commented on Jan 29, 2025

    @Soulplayer

    Is this being fixed? Thank you!

  4. imnotjames commented on Jan 29, 2025

    @imnotjames
    ContributorAuthor

    Is this being fixed? Thank you!

    The PR #176 should resolve this issue.

  5. added a commit that references this issue on Feb 8, 2025
    7f71b43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions