# Desative o login manual e permita apenas o login via Discord

**URL:** <https://meta.discourse.org/t/disable-manual-login-and-only-allow-discord-logon/110278>\
**Category:** Product Support\
**Created:** [Fevereiro 27, 2019, 8:37pm UTC](https://meta.discourse.org/t/disable-manual-login-and-only-allow-discord-logon/110278 "2019-02-27T20:37:52Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)\
**Post date:** [Fevereiro 28, 2019, 2:11am UTC](https://meta.discourse.org/t/disable-manual-login-and-only-allow-discord-logon/110278/2 "2019-02-28T02:11:49Z")

</div>

> [@ka0sdev](#):
>
> Can this be changed to something custom?

Yes, you can go to `admin > customize > site texts` and search for the text you’d like to change.

> [@ka0sdev](#):
>
> Furthermore, I’d like to know if it’s possible to replace the Login button with a Discord login button.

It’s possible with a theme component. This is kind of rough and untested (and I’m pretty sure there’s probably a better way to do it)… but something like this might work? (add to admin \> customize \> themes \> edit CSS/HTML \> header)

```JS
<script type="text/discourse-plugin" version="0.8.13">
  let currentLocale = I18n.currentLocale(); 
  I18n.translations[currentLocale].js.discord_button = "Log in with Discord";
  
api.reopenWidget("header-buttons", {

  html(attrs) {
    if (this.currentUser) {
      return;
    }
    const buttons = [];

    buttons.push(
        this.attach("link", {
          href: "/auth/discord",
          label: "discord_button",
          className: "btn btn-primary"
        })
    );
    return buttons;
  }
});
</script>

```

---

_[View the full topic](https://meta.discourse.org/t/disable-manual-login-and-only-allow-discord-logon/110278)._
