Skip to content

[FIXES #66 ] Complete Overhaul of Account Creation and method of point storage#67

Merged
Chris5613 merged 10 commits intomainfrom
dev-branch
May 11, 2023
Merged

[FIXES #66 ] Complete Overhaul of Account Creation and method of point storage#67
Chris5613 merged 10 commits intomainfrom
dev-branch

Conversation

@Chris5613
Copy link
Owner

Deleted all user auth and user account creation.
Everything will be hosted and stored with cookies.

The settings page is where a user can declare their usernames only once and that will be their account.
The setting page shows the current score and current place on the leaderboard.

Users are only allowed 1 account that is linked to their unique ID
Added instructions on the home page.

@Chris5613 Chris5613 self-assigned this May 11, 2023
@Chris5613 Chris5613 linked an issue May 11, 2023 that may be closed by this pull request
res.status(500).json({ error: 'Server error' });
const createUser = async (req, res) => {
const { username, points } = req.body;
const existingUser = await User.findOne({ username });

Check failure

Code scanning / CodeQL

Database query built from user-controlled sources

This query depends on a [user-provided value](1).
@Chris5613 Chris5613 changed the title Complete Overhaul of Account Creation and method of point storage [FIXES #66 ] Complete Overhaul of Account Creation and method of point storage May 11, 2023
@Chris5613 Chris5613 merged commit 6620fe4 into main May 11, 2023
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.

Complete overhaul of the account system and leaderboard system

1 participant