Skip to content

Confirmation link sent with invite #916

@tiagoantunes13

Description

@tiagoantunes13

When inviting Users using User.invite!, no confirmation link is sent as expected. However, when updating attributes or creating associations in an after_save callback of the associated model (CompanyUser), the User receives a confirmation link.

User.invite!
CompanyUser.create! -> with the same user

Steps to Reproduce :

Invite a user using User.invite!.
Update an attribute on the user object manually.
Observe that no confirmation link is sent.
Move the attribute update logic to an after_save callback in CompanyUser.
Observe that the user receives a confirmation link.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions