Added Discord Authentication to your cart!

Discord Authentication

FREE (1 Reviews) OpenPBBG/Gangster Legends

🔐 Discord Authentication Module for GLv2

Upgrade your login system with smooth, secure, and modern Discord authentication—fully built for GLv2. Perfect for any mafia, crime, or community game that wants to connect directly to Discord with minimal setup.

💬 Seamless Discord Login
Allow your players to log in using their Discord account with just one click. No more password headaches—just fast, safe access through OAuth2.




🛠 Admin Controls:
  • Enable or disable Discord login.
  • Set redirect paths after login.
  • Customize your client ID/secret and scopes from the admin panel.

👤 User Experience:
  • Log in or register instantly using their Discord account.
  • Auto-link Discord accounts to existing users.
  • Pull username, avatar, Discord ID, and other useful data.
  • Auto-create accounts on first login (optional).

⚙️ Integrated Logic:
  • Full OAuth2 flow using Discord's latest API.
  • Tokens are securely handled and stored.
  • Tightly integrated with GLv2’s user system.
  • Hooks into login, registration, and session management.

🧪 Developer-Friendly:
  • Clean modular PHP code.
  • Easy to drop into any existing GLv2 project.
  • Extendable functions and event hooks.
  • Built to match GLv2’s permission and template structure.




🔗 Live Demo:
https://alizgg.com/
👤 User: admin
🔐 Pass: admin

AlizHarb

Passionate dev exploring the world of persistent browser games.

Products

61 Products • 234 Sales

Reviews

Average rating of 5 (2 total reviews)

Total Value: 0

🎉 New Features & Enhancements
🔗 Discord Authentication Enhancements
Username & Avatar Support: Integrated retrieval of Discord user's username, and avatar.

🤖 Discord Bot Integration
Bot Configuration Panel: New admin interface to enable/disable the bot, set the bot token, and assign a target channel for announcements.

Bot Message Trigger: When a user successfully registers via Discord, the bot sends a notification message to the specified server channel.

Secure Token Handling: Bot token and channel ID are stored and managed via the existing settings system for secure and centralized management.

🧾 Admin Panel Update
Updated the Discord Authentication admin form with:

Bot toggle switch (Enabled/Disabled)

Input fields for Bot Token and Channel ID

Revised instructional note for creating a Discord Bot via the Discord Developer Portal

Ratings & Reviews

  1. Chris Day

    Amazing work, will use this in most projects i work on going forward! Only one slight change i would make would be to have custom CSS for the button to style it like discord, you can use the global CSS loader for the styles or even use inline css.

You Might Also Like