Skip to content

Unity login page with MySQL integration#5

Draft
feason wants to merge 2 commits into
masterfrom
cursor/unity-login-page-with-mysql-integration-6b1c
Draft

Unity login page with MySQL integration#5
feason wants to merge 2 commits into
masterfrom
cursor/unity-login-page-with-mysql-integration-6b1c

Conversation

@feason

@feason feason commented Aug 8, 2025

Copy link
Copy Markdown
Owner

Description

  • This PR implements a complete user authentication system for Unity, featuring user registration and login functionalities with a MySQL database backend.
  • Summary of changes in code:
    • LoginUI.cs: Manages the user interface interactions for both login and registration panels.
    • DatabaseManager.cs: Handles all MySQL database operations, including connection, user existence checks, user creation, and validation, utilizing parameterized queries for security.
    • LoginManager.cs: Implements the core business logic for user login, registration, password hashing (SHA256 + salt), and session management with "remember me" functionality.
    • User.cs: Defines the User data model and UserSession class for managing user state, along with helper methods for input validation.
    • DatabaseSetup.sql: A SQL script to initialize the unity_login_system database and users table, including optional logging and session tables, and pre-populates with test accounts.
    • README.md: Provides comprehensive setup and usage instructions for both MySQL and Unity, covering dependencies, scene setup, and configuration.
    • LoginUISetup.cs: An editor-only script to assist developers in quickly applying consistent styling to the login UI elements.
  • Which issues it fixes, if any: None (new feature).

Screenshots/videos:

Checklist:


Open in Cursor Open in Web

@cursor

cursor Bot commented Aug 8, 2025

Copy link
Copy Markdown

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants