Discord-auth

Implement a discord authentication

v1.3.1 - Handle null email address

Handle null email address

v1.3.0 - Fix vendor

Fix vendor

v1.3.0 - Remember authenticated users
v1.2.0 - German language
v1.2.0 - Add blade directive to know if account is linked
  • add blade directive hasDiscordLinked and hasNotDiscordLinked

Examples

     @plugin('discord-auth') {{-- if plugin discord-auth is enabled --}}
           @guest  {{-- if user is not authenticated --}}
                 <a href="{{ route('discord-auth.login') }}">Connect with discord
          @endguest
    @endplugin
     @plugin('discord-auth') {{-- if plugin discord-auth is enabled --}}
           @auth  {{-- if user is authenticated --}}
                @hasNotDiscordLinked {{-- if user hasn't a discord account linked --}}
                     <a href="{{ route('discord-auth.login') }}">Link your account with Discord
                @endhasNotDiscordLinked
           @endauth
    @endplugin
v1.1.0 - Account association
  • Ability for a user to associate his discord account to his existing account. Users just need to access the /discord-auth route when they are logged in.
  • If a user is not logged, try to login via discord, and the email address of the discord account already exists in Azuriom database, he will be asked to log in to this account using the concerned email and password to associate his discord account.
v1.0.0 - Initial release

This is the initial release of this resource