# 无需邮件的自定义账户（及通知？）系统

**URL:** https://meta.discourse.org/t/custom-account-and-notification-system-without-emails/96240
**Category:** Feature
**Created:** [2018年九月3日 03:08 UTC](https://meta.discourse.org/t/custom-account-and-notification-system-without-emails/96240 "2018-09-03T03:08:44Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![Miclebrick](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/miclebrick/32/110191_2.png) [@Miclebrick](https://meta.discourse.org/u/Miclebrick)
#### Post date: [2018年九月3日 03:08 UTC](https://meta.discourse.org/t/custom-account-and-notification-system-without-emails/96240/1 "2018-09-03T03:08:44Z")

</div>

I’m using Discourse for my Minecraft server’s forums. I was going to make my own forum but didn’t have the time and it of course wouldn’t be as good. I do like my authentication scheme, though: Register online, verify ingame, use in game name and website password to sign in. Discourse seems to required an email even if I did make a custom SSO solution though. Is this possible or do I have to make my users use emails?

---

<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: [2018年九月3日 03:11 UTC](https://meta.discourse.org/t/custom-account-and-notification-system-without-emails/96240/2 "2018-09-03T03:11:28Z")

</div>

If you use SSO it might be possible, though all emails would need to be disabled in default user prefs. @riking has commented on this use case before as I recall.

---

<div class="post-metadata">

### Author: ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)
#### Post date: [2018年九月3日 04:33 UTC](https://meta.discourse.org/t/custom-account-and-notification-system-without-emails/96240/3 "2018-09-03T04:33:32Z")

</div>

If the code for your custom authentication scheme already exists, you could just ask for email during that initial signup and do SSO 🙂

Or you could do something extra-wacky like delivering email notifications to your own server that then get shown in-game?

---

<div class="post-metadata">

### Author: ![Miclebrick](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/miclebrick/32/110191_2.png) [@Miclebrick](https://meta.discourse.org/u/Miclebrick)
#### Post date: [2018年九月5日 03:26 UTC](https://meta.discourse.org/t/custom-account-and-notification-system-without-emails/96240/4 "2018-09-05T03:26:21Z")

</div>

Is there no way to do it without email? The idea is to not require them to have emails… Though at the same time, every player does have an email, could just ask for an email and not verify it. But it’d be preferable to not require email

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [2018年九月5日 05:43 UTC](https://meta.discourse.org/t/custom-account-and-notification-system-without-emails/96240/5 "2018-09-05T05:43:26Z")

</div>

> [@Miclebrick](#):
>
> could just ask for an email and not verify it

If you’re not going to verify emails or rely on a sign on source which verified email you should skip email all together.

---

<div class="post-metadata">

### Author: ![Miclebrick](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/miclebrick/32/110191_2.png) [@Miclebrick](https://meta.discourse.org/u/Miclebrick)
#### Post date: [2018年九月5日 10:27 UTC](https://meta.discourse.org/t/custom-account-and-notification-system-without-emails/96240/6 "2018-09-05T10:27:20Z")

</div>

But does discourse actually allow you to do that?

---

<div class="post-metadata">

### Author: ![Miclebrick](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/miclebrick/32/110191_2.png) [@Miclebrick](https://meta.discourse.org/u/Miclebrick)
#### Post date: [2018年九月5日 10:46 UTC](https://meta.discourse.org/t/custom-account-and-notification-system-without-emails/96240/7 "2018-09-05T10:46:14Z")

</div>

one thing I could thing of is making it do e.g. `uuid@minecraft.net` where uuid is the player’s Minecraft UUID as the email. If it’s not actually verified anywhere, is there anything wrong with that approach (obviously it’s not actually a real email)

---

<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: [2018年九月5日 22:50 UTC](https://meta.discourse.org/t/custom-account-and-notification-system-without-emails/96240/8 "2018-09-05T22:50:36Z")

</div>

In theory that _could_ work, you need to be very careful to disable all email related preferences by default.

Just bear in mind that Discourse is architected around the central concept of **email = identity** so when you choose to violate that assumption, you’re not just swimming upstream 🏊‍♂️ , you’re roaring upstream in a speedboat 🚤.

---

<div class="post-metadata">

### Author: ![Miclebrick](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/miclebrick/32/110191_2.png) [@Miclebrick](https://meta.discourse.org/u/Miclebrick)
#### Post date: [2018年九月6日 01:40 UTC](https://meta.discourse.org/t/custom-account-and-notification-system-without-emails/96240/9 "2018-09-06T01:40:18Z")

</div>

Yeah… I think I’ll just make people sign up with email and _maybe_ add the ability to trust the server by just signing in with mojang credentials (too bad Mojang doesn’t suppose OAuth!). thanks for your help though! 😄
