# كيف يمكنني الحصول على خيار تسجيل الدخول "مع البريد الإلكتروني"؟

**URL:** https://meta.discourse.org/t/how-do-i-get-the-with-email-login-option/91327
**Category:** Support
**Created:** [1 يوليو 2018، 11:49م UTC](https://meta.discourse.org/t/how-do-i-get-the-with-email-login-option/91327 "2018-07-01T23:49:31Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![Scot](https://avatars.discourse-cdn.com/v4/letter/s/77aa72/32.png) [@Scot](https://meta.discourse.org/u/Scot)
#### Post date: [1 يوليو 2018، 11:49م UTC](https://meta.discourse.org/t/how-do-i-get-the-with-email-login-option/91327/1 "2018-07-01T23:49:32Z")

</div>

How do I allow login using email address like this?

Thank you.

 ![44%20PM](https://global.discourse-cdn.com/meta/original/3X/2/3/238fe509dede2d5ae924cd131ea626b8c963a092.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: [2 يوليو 2018، 12:13ص UTC](https://meta.discourse.org/t/how-do-i-get-the-with-email-login-option/91327/2 "2018-07-02T00:13:28Z")

</div>

Enable it in site settings, we plan to make it default on once we are sure it is 100% safe.

---

<div class="post-metadata">

### Author: ![Scot](https://avatars.discourse-cdn.com/v4/letter/s/77aa72/32.png) [@Scot](https://meta.discourse.org/u/Scot)
#### Post date: [2 يوليو 2018، 12:35ص UTC](https://meta.discourse.org/t/how-do-i-get-the-with-email-login-option/91327/3 "2018-07-02T00:35:09Z")

</div>

Thanks Jeff… I tried that but I must be blind because I cannot seem to figure out which setting to use.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [2 يوليو 2018، 12:38ص UTC](https://meta.discourse.org/t/how-do-i-get-the-with-email-login-option/91327/4 "2018-07-02T00:38:48Z")

</div>

> [@codinghorror](#):
>
> once we are sure it is 100% safe.

I think we are sure it is safe, or at least as safe as “allowing people to reset password via email” is safe. We did review the code carefully. It does add “one more vector” of code that needs regular review, that is for sure.

The big open concern though is that it does not work right with the mobile apps so we can not really enable it by default until there is some sort of story and support for using the link with mobile apps.

---

<div class="post-metadata">

### Author: ![HAWK](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hawk/32/86627_2.png) [@HAWK](https://meta.discourse.org/u/HAWK)
#### Post date: [2 يوليو 2018، 12:45ص UTC](https://meta.discourse.org/t/how-do-i-get-the-with-email-login-option/91327/5 "2018-07-02T00:45:26Z")

</div>

> [@Scot](#):
>
> I tried that but I must be blind because I cannot seem to figure out which setting to use.

Try enabling `"enable local logins via email"` and having at least one social login option.

---

<div class="post-metadata">

### Author: ![Scot](https://avatars.discourse-cdn.com/v4/letter/s/77aa72/32.png) [@Scot](https://meta.discourse.org/u/Scot)
#### Post date: [2 يوليو 2018، 12:46ص UTC](https://meta.discourse.org/t/how-do-i-get-the-with-email-login-option/91327/6 "2018-07-02T00:46:46Z")

</div>

Thanks Hawk! I Appreciate your help 🙂

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [2 يوليو 2018، 7:52ص UTC](https://meta.discourse.org/t/how-do-i-get-the-with-email-login-option/91327/9 "2018-07-02T07:52:51Z")

</div>

> [@HAWK](#):
>
> and having at least one social login option.

I would not have guessed that was a requirement.

---

<div class="post-metadata">

### Author: ![HAWK](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hawk/32/86627_2.png) [@HAWK](https://meta.discourse.org/u/HAWK)
#### Post date: [2 يوليو 2018، 8:06ص UTC](https://meta.discourse.org/t/how-do-i-get-the-with-email-login-option/91327/10 "2018-07-02T08:06:05Z")

</div>

Yeah, it’s a trivial bug that we’ll fix.

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [2 يوليو 2018، 11:24ص UTC](https://meta.discourse.org/t/how-do-i-get-the-with-email-login-option/91327/12 "2018-07-02T11:24:55Z")

</div>

This should fix it

[https://github.com/discourse/discourse/pull/6061](https://github.com/discourse/discourse/pull/6061)

 ![14](https://global.discourse-cdn.com/meta/original/3X/6/8/68de153271e178fd93f89464400fd356c3f6535d.png)

 ![28](https://global.discourse-cdn.com/meta/original/3X/1/9/1998746cff24c13d0e373c0b92d10822dbc835bf.png)

However I didn’t merge it yet, because the previous behaviour was to show the “with email” link only when username was filled.

Which was ok before but is a little bit weird now (when you don’t have any social login):

 ![18](https://global.discourse-cdn.com/meta/original/3X/c/c/cc8251227a4bcc95298979c55499fd1b0a8b1f69.png)

I would be in favor of showing it all the time now, if you agree.

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [2 يوليو 2018، 12:36م UTC](https://meta.discourse.org/t/how-do-i-get-the-with-email-login-option/91327/13 "2018-07-02T12:36:32Z")

</div>

Ok I merged it after removing the hide/show behavior and adding a few tests.

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

Thanks.

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [2 يوليو 2018، 12:36م UTC](https://meta.discourse.org/t/how-do-i-get-the-with-email-login-option/91327/14 "2018-07-02T12:36:46Z")

</div>



---

<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: [6 نوفمبر 2018، 9:53م UTC](https://meta.discourse.org/t/how-do-i-get-the-with-email-login-option/91327/15 "2018-11-06T21:53:02Z")

</div>

The site setting

> **enable local logins via email**
> 
> Allow users to request a one-click login link to be sent to them via email.

Is now on by default in Discourse 2.2 beta.
