-
Notifications
You must be signed in to change notification settings - Fork 0
PROFILE.md
Jason Brain edited this page Jan 10, 2026
·
1 revision
The Profile system allows authenticated users to manage their own account credentials without needing direct database access.
- Update Info: Change Display Name and Email Address.
- Change Password: Securely update login credentials.
- Avatar Upload: Upload a profile picture (JPG, PNG, GIF, WEBP).
- Validation: Checks for email uniqueness and password confirmation matching.
-
Password Hashing: All new passwords are hashed using
password_hash()(Bcrypt/Argon2) before storage. -
Session Protection: Users can only edit their own ID (retrieved from
$_SESSION['user_id']). -
File Security: Avatars are stored in the secure
uploads/directory, protected by.htaccessto prevent script execution.
- Log in to the Admin Dashboard.
- Click My Profile in the sidebar.
- Update fields or upload a new Profile Picture.
- Click Save Changes.
- 2FA: Two-Factor Authentication settings.
- Bio/Social Links: Additional profile fields.
-
Storage: Files are saved in
uploads/{year}/{month}/. -
Database: The relative path is stored in the
userstable (avatarcolumn). -
Naming: Files are renamed to
avatar_{user_id}_{timestamp}.extto prevent collisions.