# The Discourse Login Bot - login to this forum with just a QR code!

**URL:** <https://support.delta.chat/t/the-discourse-login-bot-login-to-this-forum-with-just-a-qr-code/928>\
**Category:** Bots\
**Created:** [April 7, 2020, 11:07am UTC](https://support.delta.chat/t/the-discourse-login-bot-login-to-this-forum-with-just-a-qr-code/928 "2020-04-07T11:07:24Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![compl4xx](https://support.delta.chat/user_avatar/support.delta.chat/compl4xx/32/12_2.png) [@compl4xx](https://support.delta.chat/u/compl4xx)\
**Post date:** [April 7, 2020, 11:07am UTC](https://support.delta.chat/t/the-discourse-login-bot-login-to-this-forum-with-just-a-qr-code/928/1 "2020-04-07T11:07:24Z")

</div>

# The Discourse Login Bot - login to this forum with just a QR code!

At our Delta Chat hackathon in November, we developed a neat authentication tool. It enables you to easily login to this forum or create an account by just scanning a QR code with your Delta Chat app. This works with other [discourse forums](https://www.discourse.org/) as well.

## What is it good for?

Imagine you need help with Delta Chat, found a bug, or want to propose a feature. You go to this forum, and want to open a topic to discuss it with the others from the community. But first you need to create an account, make up a password, wait for a verification mail - it’s just too much of an effort.

If you have a [GitHub](https://github.com/deltachat/) account, like many Open Source developers do, you can click on “Login with GitHub”. It’s the same as “Login with Facebook, Twitter, etc.” on other platforms, which we don’t offer for privacy reasons. But now you can also choose **“Login with Delta Chat”**.

### How can you use it?

![An account creation form - on the right, it says "With Delta Chat".](https://support.delta.chat/uploads/default/original/1X/2c58af107f75616633c487efa56cb593af62c18f.png)

_On [support.delta.chat](https://support.delta.chat/), click on “Sign Up” to create an account._

Then you get redirected to [login.testrun.org](http://login.testrun.org), our authentication server. It shows you a QR code. **Scan it with your Delta Chat Android/iOS app** :

 ![A website showing a QR code to login to the forum.](https://support.delta.chat/uploads/default/original/1X/5880af1e38b4738864ab203612afd0e73b277b9e.png)

_Scan the QR code with your Delta Chat Android/iOS app to authenticate yourself._

Now you get prompted on your phone, whether you want to join a group - that’s normal for now. You can just **tap on “OK”**. In the background, it exchanges some mails to verify you - a bit like a verification link in an E-Mail, but fully automated. Afterwards you have two more chats in your chat list - you can leave them, ignore them, for now it’s only necessary that they are created.

 ![Different Screenshots, showing what's happening on the Android app in the meantime.](https://support.delta.chat/uploads/default/original/1X/22e875d07b924145608706ed5625b03c41995599.jpeg)

_The steps it takes on Android - in our current prototype, this is not yet optimized._

It takes a few seconds, then you get redirected to the forum, where you can **choose a username**. It suggests the username you use for Delta Chat, but if you want to pick a different one, go for it:

 ![An account creation form with E-Mail address and username, filled out.](https://support.delta.chat/uploads/default/original/1X/43457fff8f02949ba8ac658212138611e3abf0b4.png)

_It takes only one click to create your account, the username is the same as in Delta Chat._

**That’s it!** Now you can use the forum as you want. Ask questions, help others, discuss feature requests.

## What’s the innovation behind this?

Most of this is not very new. [OAuth2](https://oauth.net/2/) is an established standard and has been around for a while. “Login with Delta Chat” uses it just as well as “Login with GitHub”.

The main innovation is the **QR code** - you can use your phone to login quickly, on other computers as well. This gives a whole different feeling to logging in; just scan a QR code and you’re done. No passwords necessary.

With this authentication method, the E-Mail address of the contact is available directly, which is used by almost every internet service for identification. The biggest difference between Delta Chat and other messengers has always been that we can use the advantages of the E-Mail network.

For now we only set it up with our Discourse Forum - setting it up for other [Discourse](https://www.discourse.org/) instances is easy though. _(If you want to set it up for your forum, [take a look at the installation docs](https://github.com/deltachat-bot/discourse-login-bot#setup))._ In theory, it could be used for any web service - ownCloud, Mastodon, or other decentralized services are well suited for this.

But the most important advantage is in terms of **privacy**. You don’t have to tell Facebook or GitHub (Microsoft) that you are using our Forum. You don’t have to give any application access to your Facebook or GitHub account. This is just between your E-Mail account and us.

**Try it out:** [sign up](https://support.delta.chat/signup) for this forum or connect to OAuth2 in your account preferences!

---

<div class="post-metadata">

**Author:** ![dotlambda](https://support.delta.chat/letter_avatar_proxy/v4/letter/d/b487fb/32.png) [@dotlambda](https://support.delta.chat/u/dotlambda)\
**Post date:** [July 4, 2021, 11:52pm UTC](https://support.delta.chat/t/the-discourse-login-bot-login-to-this-forum-with-just-a-qr-code/928/2 "2021-07-04T23:52:11Z")

</div>

Can I use the notification feature described in [GitHub - deltachat-bot/discourse-login-bot: This Delta Chat bot allows people to authenticate at a Discourse instance using their Delta Chat app.](https://github.com/deltachat-bot/discourse-login-bot#notifier) on this instance?

---

<div class="post-metadata">

**Author:** ![link2xt](https://support.delta.chat/user_avatar/support.delta.chat/link2xt/32/1971_2.png) [@link2xt](https://support.delta.chat/u/link2xt)\
**Post date:** [July 5, 2021, 12:23pm UTC](https://support.delta.chat/t/the-discourse-login-bot-login-to-this-forum-with-just-a-qr-code/928/3 "2021-07-05T12:23:11Z")

</div>

This was written when Delta Chat did not support mailing lists and ignored notifications sent by discourse. Maybe you can simply enable classic emails in your DC and receive messages this way? You will not be able to reply though.

---

<div class="post-metadata">

**Author:** ![Vponed](https://support.delta.chat/user_avatar/support.delta.chat/vponed/32/1192_2.png) [@Vponed](https://support.delta.chat/u/Vponed)\
**Post date:** [July 16, 2021, 1:15pm UTC](https://support.delta.chat/t/the-discourse-login-bot-login-to-this-forum-with-just-a-qr-code/928/4 "2021-07-16T13:15:33Z")

</div>

Does not work. Endless loading. It’s a pity.  
The dream messenger should include the ability to extend functionality with python scripts. For lamers: “add a script” and just a code file, for advanced ones, instructions on how to write this file. Access to messages, filtering, requests for information on the network ----- this is a dream

---

<div class="post-metadata">

**Author:** ![dotlambda](https://support.delta.chat/letter_avatar_proxy/v4/letter/d/b487fb/32.png) [@dotlambda](https://support.delta.chat/u/dotlambda)\
**Post date:** [July 16, 2021, 2:29pm UTC](https://support.delta.chat/t/the-discourse-login-bot-login-to-this-forum-with-just-a-qr-code/928/5 "2021-07-16T14:29:37Z")

</div>

> [@Vponed](#):
>
> Does not work. Endless loading.

You mean the login functionality? It also took me really long the first time because of greylisting.

---

<div class="post-metadata">

**Author:** ![Vponed](https://support.delta.chat/user_avatar/support.delta.chat/vponed/32/1192_2.png) [@Vponed](https://support.delta.chat/u/Vponed)\
**Post date:** [July 16, 2021, 3:17pm UTC](https://support.delta.chat/t/the-discourse-login-bot-login-to-this-forum-with-just-a-qr-code/928/6 "2021-07-16T15:17:56Z")

</div>

I waited a long time, and tired)

---

<div class="post-metadata">

**Author:** ![link2xt](https://support.delta.chat/user_avatar/support.delta.chat/link2xt/32/1971_2.png) [@link2xt](https://support.delta.chat/u/link2xt)\
**Post date:** [July 16, 2021, 8:14pm UTC](https://support.delta.chat/t/the-discourse-login-bot-login-to-this-forum-with-just-a-qr-code/928/7 "2021-07-16T20:14:12Z")

</div>

I just tested with my [mailo](https://www.mailo.com/) account, it takes really long time (several minutes) but succeeds eventually.

---

<div class="post-metadata">

**Author:** ![Vponed](https://support.delta.chat/user_avatar/support.delta.chat/vponed/32/1192_2.png) [@Vponed](https://support.delta.chat/u/Vponed)\
**Post date:** [July 17, 2021, 12:31am UTC](https://support.delta.chat/t/the-discourse-login-bot-login-to-this-forum-with-just-a-qr-code/928/8 "2021-07-17T00:31:40Z")

</div>

mailo? Please discard the connection settings, I can enter my account, but I can not send a letter…

---

<div class="post-metadata">

**Author:** ![hellekin](https://support.delta.chat/letter_avatar_proxy/v4/letter/h/9f8e36/32.png) [@hellekin](https://support.delta.chat/u/hellekin)\
**Post date:** [February 4, 2023, 5:36pm UTC](https://support.delta.chat/t/the-discourse-login-bot-login-to-this-forum-with-just-a-qr-code/928/9 "2023-02-04T17:36:00Z")

</div>

@brabo I managed to login with deltachat in a private firefox window, so I can confirm it’s a NoScript issue. But now it created a new account, merging welcome 🙂

---

<div class="post-metadata">

**Author:** ![az2g6a4rm](https://support.delta.chat/letter_avatar_proxy/v4/letter/a/dec6dc/32.png) [@az2g6a4rm](https://support.delta.chat/u/az2g6a4rm)\
**Post date:** [May 14, 2025, 3:45am UTC](https://support.delta.chat/t/the-discourse-login-bot-login-to-this-forum-with-just-a-qr-code/928/11 "2025-05-14T03:45:56Z")

</div>

This bot is awesome but it has two bugs with its integration:

1. When you follow the bot’s invite link on a phone, the bot doesn’t tell you that you should go back to your browser to finish login as it relies on page refreshes to check and they don’t execute in the background.

2. If you log out, you have the same client ID or some other cookie/identifier. If you attempt to login again it will fail because the invite link is the same one you’ve already used. You have to clear browser cache to get a new login bot DeltaChat group

---

<div class="post-metadata">

**Author:** ![farooqkz](https://support.delta.chat/user_avatar/support.delta.chat/farooqkz/32/1762_2.png) [@farooqkz](https://support.delta.chat/u/farooqkz)\
**Post date:** [May 22, 2025, 3:13pm UTC](https://support.delta.chat/t/the-discourse-login-bot-login-to-this-forum-with-just-a-qr-code/928/12 "2025-05-22T15:13:17Z")

</div>

Hello! I am the one responsible for loginbot now. Thank you so much for your feedback. The first bug is easy to fix. And I will create an issue for it then do a PR soon.

The second bug has been reported previously and it’s my bad still it’s there. Currently, I’m too busy. I will consider fixing it as soon as I find some free time. The issue for the 2nd bug is [here](https://github.com/deltachat-bot/deltachat-loginbot/issues/20).

If you’ve got more feedback, like about UI or UX. You are very welcome to open an issue on the Github repo. Here is also okay but I’m afraid ideas or feedbacks will get lost. As you know, it’s a forum not a bug tracker.

---

<div class="post-metadata">

**Author:** ![r10s](https://support.delta.chat/user_avatar/support.delta.chat/r10s/32/1513_2.png) [@r10s](https://support.delta.chat/u/r10s)\
**Post date:** [October 6, 2026, 3:19pm UTC](https://support.delta.chat/t/the-discourse-login-bot-login-to-this-forum-with-just-a-qr-code/928/13 "2026-10-06T15:19:38Z")

</div>


