diff --git a/.gitignore b/.gitignore index 48154ba..1f1c718 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,3 @@ .env node_modules/ - +uploads/ diff --git a/routes/auth.js b/routes/auth.js index a35cc41..3f78951 100644 --- a/routes/auth.js +++ b/routes/auth.js @@ -8,7 +8,9 @@ const passport = require('passport'); router.post('/register', async (req, res) => { const { username, password } = req.body; if (!username || !password) return res.status(400).json({ error: 'Missing fields' }); - const user = new User({ username, password }); + const pfp = "https://source.boringavatars.com/marble/" + username + console.log(pfp) + const user = new User({ username, password, profilePhoto: pfp }); await user.save(); res.sendStatus(201); console.log("register success") diff --git a/uploads/0bb27267a80839f862e2480137739656 b/uploads/0bb27267a80839f862e2480137739656 deleted file mode 100644 index 48d12a3..0000000 Binary files a/uploads/0bb27267a80839f862e2480137739656 and /dev/null differ diff --git a/uploads/0c973677ce63449319d90bd66cf97162 b/uploads/0c973677ce63449319d90bd66cf97162 deleted file mode 100644 index 284a7b2..0000000 Binary files a/uploads/0c973677ce63449319d90bd66cf97162 and /dev/null differ diff --git a/uploads/1d23510b8fbf92776ecc858c09f99546 b/uploads/1d23510b8fbf92776ecc858c09f99546 deleted file mode 100644 index bb640f8..0000000 Binary files a/uploads/1d23510b8fbf92776ecc858c09f99546 and /dev/null differ diff --git a/uploads/30fcba5f4d7f3c006a253d1232be88a9 b/uploads/30fcba5f4d7f3c006a253d1232be88a9 deleted file mode 100644 index 284a7b2..0000000 Binary files a/uploads/30fcba5f4d7f3c006a253d1232be88a9 and /dev/null differ diff --git a/uploads/577fba8e6d8bc48dc5c291968fd3848c b/uploads/577fba8e6d8bc48dc5c291968fd3848c deleted file mode 100644 index 4ab7c47..0000000 Binary files a/uploads/577fba8e6d8bc48dc5c291968fd3848c and /dev/null differ diff --git a/uploads/5a581ff18efedcc2ad7d5748b9022443 b/uploads/5a581ff18efedcc2ad7d5748b9022443 deleted file mode 100644 index 4ab7c47..0000000 Binary files a/uploads/5a581ff18efedcc2ad7d5748b9022443 and /dev/null differ diff --git a/uploads/5cdd2712ebb2ebf8df89a320296abdeb b/uploads/5cdd2712ebb2ebf8df89a320296abdeb deleted file mode 100644 index 284a7b2..0000000 Binary files a/uploads/5cdd2712ebb2ebf8df89a320296abdeb and /dev/null differ diff --git a/uploads/6c11bc252f297a862ba04cbf726b42e4 b/uploads/6c11bc252f297a862ba04cbf726b42e4 deleted file mode 100644 index 4ab7c47..0000000 Binary files a/uploads/6c11bc252f297a862ba04cbf726b42e4 and /dev/null differ diff --git a/uploads/75f674fc06f2b302bf32ca59935afe29 b/uploads/75f674fc06f2b302bf32ca59935afe29 deleted file mode 100644 index 4ab7c47..0000000 Binary files a/uploads/75f674fc06f2b302bf32ca59935afe29 and /dev/null differ diff --git a/uploads/797cb3d8d22711292e203c970043b4c8 b/uploads/797cb3d8d22711292e203c970043b4c8 deleted file mode 100644 index 6ac0447..0000000 Binary files a/uploads/797cb3d8d22711292e203c970043b4c8 and /dev/null differ diff --git a/uploads/7ab39ef23cd061e4961301703a484a3e b/uploads/7ab39ef23cd061e4961301703a484a3e deleted file mode 100644 index 284a7b2..0000000 Binary files a/uploads/7ab39ef23cd061e4961301703a484a3e and /dev/null differ diff --git a/uploads/7cb355932c572b0235f12e1907dedb63 b/uploads/7cb355932c572b0235f12e1907dedb63 deleted file mode 100644 index df90cbe..0000000 Binary files a/uploads/7cb355932c572b0235f12e1907dedb63 and /dev/null differ diff --git a/uploads/92f7a34ccf17fed4baa9cb5568ce941c b/uploads/92f7a34ccf17fed4baa9cb5568ce941c deleted file mode 100644 index 170e8f8..0000000 Binary files a/uploads/92f7a34ccf17fed4baa9cb5568ce941c and /dev/null differ diff --git a/uploads/94fbc32bc6c9b1100fcb63b119643754 b/uploads/94fbc32bc6c9b1100fcb63b119643754 deleted file mode 100644 index 4ab7c47..0000000 Binary files a/uploads/94fbc32bc6c9b1100fcb63b119643754 and /dev/null differ diff --git a/uploads/e105d09c4302a1e50dbc6b244a6b069e b/uploads/e105d09c4302a1e50dbc6b244a6b069e deleted file mode 100644 index 4ab7c47..0000000 Binary files a/uploads/e105d09c4302a1e50dbc6b244a6b069e and /dev/null differ diff --git a/uploads/e1bcd5c7b4622f19a3a329efc89bad76 b/uploads/e1bcd5c7b4622f19a3a329efc89bad76 deleted file mode 100644 index 4ab7c47..0000000 Binary files a/uploads/e1bcd5c7b4622f19a3a329efc89bad76 and /dev/null differ diff --git a/uploads/e757fca847d3a9cda86bc57200ea6066 b/uploads/e757fca847d3a9cda86bc57200ea6066 deleted file mode 100644 index 5ca2959..0000000 Binary files a/uploads/e757fca847d3a9cda86bc57200ea6066 and /dev/null differ