Use Boring Avatar to show user avatar

This commit is contained in:
Takeshi Kimata
2024-05-20 23:16:17 +09:00
parent c5ba3b9a00
commit c40a2440ba
20 changed files with 18 additions and 24 deletions

View File

@@ -11,7 +11,7 @@ module.exports = function (sequelize) {
router.post('/signup', async (req, res) => {
try {
const { email, password, username, avatarPath } = req.body;
const { email, password, username } = req.body;
const hashedPassword = await bcrypt.hash(password, 10);
const userCount = await User.count();
@@ -25,7 +25,6 @@ module.exports = function (sequelize) {
password: hashedPassword,
username: username,
role: initialRole,
avatarPath: avatarPath,
});
const accessToken = jwt.sign({ userId: user.id }, 'your-secret-key', {