Skip to content

Commit

Permalink
update register
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoman-zhang committed Aug 16, 2024
1 parent d495232 commit 7f553f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server.js
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ app.get('/get-choices/:userId', async (req, res) => {

const SALT_ROUNDS = 10; // Add this line to define SALT_ROUNDS

app.post('/login',loginLimiter async (req, res) => {
app.post('/login',loginLimiter, async (req, res) => {
try {
const { username, password } = req.body;
console.log('Login attempt for username:', username);
Expand Down

0 comments on commit 7f553f8

Please sign in to comment.