# Generating an invite link automatically creates a user and sends an email?

**URL:** https://meta.discourse.org/t/generating-an-invite-link-automatically-creates-a-user-and-sends-an-email/51204
**Category:** Bug
**Created:** [10월 7, 2016, 2:54오전 UTC](https://meta.discourse.org/t/generating-an-invite-link-automatically-creates-a-user-and-sends-an-email/51204 "2016-10-07T02:54:12Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![cappy](https://avatars.discourse-cdn.com/v4/letter/c/22d042/32.png) [@cappy](https://meta.discourse.org/u/cappy)
#### Post date: [10월 7, 2016, 2:54오전 UTC](https://meta.discourse.org/t/generating-an-invite-link-automatically-creates-a-user-and-sends-an-email/51204/1 "2016-10-07T02:54:12Z")

</div>

I am trying to only generate an invite link and nothing else; doing a request to /link results in an invite email being triggered and an account being automatically created

 ![](https://global.discourse-cdn.com/meta/original/3X/f/9/f9ce5dfc69e3ec37b2a7e83a3de6608e8af823d7.png)

How do I prevent this behaviour and only generate the link and nothing else? I explicitly only click copy link, and not send.

The only requests fired:  
 ![](https://global.discourse-cdn.com/meta/original/3X/8/a/8affb51523c81fd5adbd221785a2359527400f66.png)

It does not appear to be an email system auto-visiting every link received in a message body; there is no activation IP:

![](https://global.discourse-cdn.com/meta/original/3X/3/9/39765955cd78f7ce7f3fd02d174d0124933ac828.png)

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [10월 7, 2016, 3:08오전 UTC](https://meta.discourse.org/t/generating-an-invite-link-automatically-creates-a-user-and-sends-an-email/51204/2 "2016-10-07T03:08:05Z")

</div>

Use the invite button on your user page or any topic?

 ![](https://global.discourse-cdn.com/meta/original/3X/5/2/52b86cdb740baec3d159843f81d8d7a7e3be5c4d.PNG)

Press the Copy Invite Link button.

---

<div class="post-metadata">

### Author: ![cappy](https://avatars.discourse-cdn.com/v4/letter/c/22d042/32.png) [@cappy](https://meta.discourse.org/u/cappy)
#### Post date: [10월 7, 2016, 3:29오전 UTC](https://meta.discourse.org/t/generating-an-invite-link-automatically-creates-a-user-and-sends-an-email/51204/3 "2016-10-07T03:29:53Z")

</div>

Using the copy invite button changes the modal into an input box to copy the invite link, but it still sends an email, I can’t seem to figure out how to avoid that. The copy invite link button definitely does trigger a new invite email from what I can see, though

I’ll enter the container and look closer at logs to see what might be possibly triggering staged users or something when I get home in a bit.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [10월 7, 2016, 3:35오전 UTC](https://meta.discourse.org/t/generating-an-invite-link-automatically-creates-a-user-and-sends-an-email/51204/4 "2016-10-07T03:35:53Z")

</div>

I can confirm this, definitely a bug @techAPJ can you have a look?

---

<div class="post-metadata">

### Author: ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)
#### Post date: [10월 7, 2016, 8:21오전 UTC](https://meta.discourse.org/t/generating-an-invite-link-automatically-creates-a-user-and-sends-an-email/51204/5 "2016-10-07T08:21:01Z")

</div>

Fixed via:

[https://github.com/discourse/discourse/commit/3d02dc28be235c519496c2341f79e5ea4ea8f653](https://github.com/discourse/discourse/commit/3d02dc28be235c519496c2341f79e5ea4ea8f653)

It was regressed 17 days ago in [this commit](https://github.com/discourse/discourse/commit/b0ee7930e8433e29251ee9ce7f1866617f9e7936).

Thanks for reporting it @cappy! 👍

---

<div class="post-metadata">

### Author: ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)
#### Post date: [10월 7, 2016, 5:16오후 UTC](https://meta.discourse.org/t/generating-an-invite-link-automatically-creates-a-user-and-sends-an-email/51204/6 "2016-10-07T17:16:18Z")

</div>


