# Invite link should not auto-accept invitation if user is already logged in

**URL:** <https://meta.discourse.org/t/invite-link-should-not-auto-accept-invitation-if-user-is-already-logged-in/39529>\
**Category:** Feature\
**Created:** [2016 年 2 月 13 日午後 1:32 UTC](https://meta.discourse.org/t/invite-link-should-not-auto-accept-invitation-if-user-is-already-logged-in/39529 "2016-02-13T13:32:29Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![mcwumbly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mcwumbly/32/103861_2.png) [@mcwumbly](https://meta.discourse.org/u/mcwumbly)\
**Post date:** [2016 年 2 月 13 日午後 1:32 UTC](https://meta.discourse.org/t/invite-link-should-not-auto-accept-invitation-if-user-is-already-logged-in/39529/1 "2016-02-13T13:32:29Z")

</div>

I’ve been using the [Copy Invite Link](https://meta.discourse.org/t/copy-invite-link-link/32648) features for invites primarily because I find it a lot more natural to personally craft a message to people who I am inviting to a topic (especially people who are not yet users).

Recently, I was typing up an email and when I added the link, I was kindly prompted by Gmail to test the URL:

 ![](https://global.discourse-cdn.com/meta/original/3X/b/d/bdc21d2184566aa7d13b75fedb5455aadf266524.png)

The dialog in Discourse states that the “Invite link is only valid for this email address”:

[![](https://global.discourse-cdn.com/meta/original/3X/7/d/7d1d54bae9e9c9b2cdc9714b3381603cc0ad352e.png) ](https://global.discourse-cdn.com/meta/original/3X/7/d/7d1d54bae9e9c9b2cdc9714b3381603cc0ad352e.png)

Unfortunately, after clicking it, even though I was already logged in as myself, it appeared to immediately accept the invitation.

If a user is already logged in who is not the one who created the invite it could instead display a warning dialog saying something to the effect of “oops, looks like you are attempting to accept an invitation for another user. If you are not [logged in user], please log out and try again?”

---

_[View the full topic](https://meta.discourse.org/t/invite-link-should-not-auto-accept-invitation-if-user-is-already-logged-in/39529)._
