diff --git a/backend/access.log b/backend/access.log index cc4c579..9c97c23 100644 --- a/backend/access.log +++ b/backend/access.log @@ -1 +1,5 @@ ::1 - - [26/Sep/2021:06:26:31 +0000] "OPTIONS /api/places HTTP/1.1" 200 4 "http://localhost:3000/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.4577.82 Safari/537.36" +::1 - - [27/Sep/2021:06:13:10 +0000] "OPTIONS /api/users/reset HTTP/1.1" 200 4 "http://localhost:3000/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.4577.82 Safari/537.36" +::1 - - [27/Sep/2021:06:13:17 +0000] "POST /api/users/reset HTTP/1.1" 200 36 "http://localhost:3000/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.4577.82 Safari/537.36" +::1 - - [27/Sep/2021:06:15:34 +0000] "OPTIONS /api/users/reset HTTP/1.1" 200 4 "http://localhost:3000/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.4577.82 Safari/537.36" +::1 - - [27/Sep/2021:06:15:41 +0000] "POST /api/users/reset HTTP/1.1" 200 36 "http://localhost:3000/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.4577.82 Safari/537.36" diff --git a/backend/controllers/users-controllers.js b/backend/controllers/users-controllers.js index 7326b52..ae83154 100644 --- a/backend/controllers/users-controllers.js +++ b/backend/controllers/users-controllers.js @@ -14,10 +14,6 @@ const transporter = nodemailer.createTransport({ }, }); -// const sgmail = require("@sendgrid/mail"); -// sgmail.setApiKey( -// "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" -// ); const getUsers = async (req, res, next) => { let users; @@ -182,6 +178,7 @@ const reset = (req, res, next) => { return next(error); } const token = buffer.toString("hex"); + User.findOne({ email: req.body.email }) .then((user) => { if (!user) { diff --git a/backend/middleware/check-auth,.js b/backend/middleware/check-auth,.js index 0b1bd8f..dfc9295 100644 --- a/backend/middleware/check-auth,.js +++ b/backend/middleware/check-auth,.js @@ -1,5 +1,6 @@ const HttpError = require('../models/http-error'); const jwt = require('jsonwebtoken'); + module.exports = (req, res, next) => { if(req.method==="OPTIONS"){ return next(); diff --git a/frontend/.firebase/hosting.YnVpbGQ.cache b/frontend/.firebase/hosting.YnVpbGQ.cache index 17b4a00..2226d9c 100644 --- a/frontend/.firebase/hosting.YnVpbGQ.cache +++ b/frontend/.firebase/hosting.YnVpbGQ.cache @@ -1,49 +1,49 @@ favicon.ico,1630411757967,8a1ab86216c9133e6fd3ed9145f6336c97d7e554a2466130834fa50167dbc282 manifest.json,1630411757967,5c997de1364b8be939319fa9209abd77f2caf7f8844999a9e2e9173f844e7840 robots.txt,1630411757967,53d2dcecb15666b4f7db4041361d3b6ea115483937dd38b66216deda98adaa4a -asset-manifest.json,1632593518258,6a0addb677b1fc536f189d9d82d72ccb1c321a617ac778d7ffdc81792c484bdc -index.html,1632593518254,2fa60e5b5889173ad6dcf0da1e5ff404f0d6cc8d2dd35897f1ed84a5b2956928 -precache-manifest.2e05672f25cc781423972dac446082df.js,1632593518256,2d0fcb72cedb502310f9a877a2fc029190e0b30de18c2037890c136adc34f4a4 -service-worker.js,1632593518256,27f9910d4d0a372440b72a94497b6d6169ba92240cf0cdf6aa6fe322bf6312e1 -static/css/0.073b2a2b.chunk.css,1632593518204,30ec59ed6b13fa3ab059a5ad25645dc421e4841c77151c6baa7092e83955ec1c -static/css/0.073b2a2b.chunk.css.map,1632593518247,f4530584312106e6df5afce16f654685a3c5b7c85411c0a3f4dd1725a51369ed -static/css/10.87cd5d6d.chunk.css,1632593518247,b437a376e469631f8732c0447d7cd54f240e702b1cb3b2b1353b6c066ce5552d -static/css/11.87cd5d6d.chunk.css,1632593518247,8e492686442c3a6d5e9f88e59d83882f313e8f3cca79e601a5dff7104911a2f9 -static/css/10.87cd5d6d.chunk.css.map,1632593518247,dbcb5aa80eeabc7c707c539a93bb0b150ed7681fe77c6c988777a1e2d873f2ee -static/css/11.87cd5d6d.chunk.css.map,1632593518248,abae073eb3467301630acb58a4874c811bc5fd5b383ffcb74504b945385511a0 -static/css/5.55f5065a.chunk.css,1632593518210,91da8b6c1f496c419de2737c455a6c424579bf9a121ab18def61e8943f106f19 -static/css/5.55f5065a.chunk.css.map,1632593518248,d73dcb25644df75bdba048c9be6fb6386663153a128ff5ef3fc01ed51ffe869a -static/css/6.d1d17f0b.chunk.css,1632593518209,6bbbf6882b70ccb8a657d55f726870349669ac11859bf499640a8889fc05806d -static/css/7.c6b99c8d.chunk.css,1632593518211,a59318720de765f0db9dc776b83eec64ea09bded5d35bbb12293a47d5d9d184e -static/css/6.d1d17f0b.chunk.css.map,1632593518248,4c16e6add2624a830c43743fdf32b193ce325dd90854e0da2f2c0370a9ec2ff2 -static/css/7.c6b99c8d.chunk.css.map,1632593518247,a171a79528026356a40fdc9ae5f600d042366a79a2c9298494002ca045cc6168 -static/css/8.c5ff90d1.chunk.css,1632593518210,292ed791be916723d08e1bb8fedf982d0f92b1c268a4ea90bb445d0aa653bff4 -static/css/8.c5ff90d1.chunk.css.map,1632593518248,ea5374bd8a637d26a5a1bb451d95bc80d55ee0bc7f392814cf6623070915469f -static/css/9.5028cd6e.chunk.css,1632593518213,2ea32fc36cb2486820b3895bbbba73a8dfb1d5526c82efe5d03d79725f772d17 -static/css/9.5028cd6e.chunk.css.map,1632593518248,27ba7bb678eca9453cfaa2d820aa8a6fa69bff82f4201712c9615c0c4da45ace -static/css/main.0d84e07a.chunk.css,1632593518209,e66a9116282d4afc20cf91fa00f6020efcae80f0018d0e559fb9d05068f37cef -static/css/main.0d84e07a.chunk.css.map,1632593518247,6a0b94e1993e974fa65cdaccb3a8298fa1d729737bd40454212362a787cf4732 -static/js/0.1acf2ae6.chunk.js,1632593518206,ecba086b5b32da1004beda32af8f432db207575ae5caeabd50b10404a5749031 -static/js/10.a2014bcb.chunk.js,1632593518246,5f62db44789427c396541f1b1c63beef27bb81355c82bb1194dec809983fb076 -static/js/11.736cd0aa.chunk.js,1632593518247,e2cfdb9ad4d52dd53a632d95d73132c954b41d89d26206dc9b855095f23fa181 -static/js/10.a2014bcb.chunk.js.map,1632593518258,a180ea91b32a0636d15d49b159ed286dfdc7bf2b0d1937459a7c5b5a42fc26ba -static/js/11.736cd0aa.chunk.js.map,1632593518258,08ac73d27eea94a895f527f3bbbf186f5bc282acd621d4dab3bf0f629e8b2009 -static/js/5.aa8d53a9.chunk.js,1632593518211,351f4f7188adf78c10f1a671d1e56573b43b25fcbec67f8b4d2ba3c724a3a8f6 -static/js/6.ba0e9538.chunk.js,1632593518210,3922c44ae7f3d34a6817ad4850342c091d2242e1fa8eafe44706d066cd7ffc7f -static/js/6.ba0e9538.chunk.js.map,1632593518257,b51d57f173ffb138e784a7be4b981b68a3910fe1b3dc457da2a61e6c73d8ace3 -static/js/5.aa8d53a9.chunk.js.map,1632593518257,ea210d5e843c7bae56c6a2c035b727d97d686cf6bc9c506a90fa566f7abe246f -static/js/7.29553383.chunk.js,1632593518211,6b2707d26d94a21153f7b0ac8c4caf8420f3c33fa3fab72d48eb638ccdd6a938 -static/js/8.6415bed6.chunk.js,1632593518211,a8cf459392c8368a2e4804153704ca83925fd7de151e0760e5c14fe8260b0991 -static/js/9.a761807d.chunk.js,1632593518227,94242ad743eb727500b39bbeec775934a24c4ced4bd67fb477ca59072c8cacc0 -static/js/7.29553383.chunk.js.map,1632593518257,c6dead8885fea442881945dac22ca8fbf60d9f86b7987d7549a96abf85e25504 -static/js/8.6415bed6.chunk.js.map,1632593518257,a4d338af776755accc3c444b33baf85e665bddc2e5ca4a943e82782a1e0b0a53 -static/js/9.a761807d.chunk.js.map,1632593518258,90b5abb9051f3d90f48428af03e63a85d11b0dc7f6e9e3f62601dde8a753b7b9 -static/js/main.0ab96b0b.chunk.js,1632593518210,aef0661d64e8ec79becdb01095cd0c05d7db62289f793f30de3b1cb82f1e82b3 -static/js/runtime-main.40f009af.js,1632593518210,2d90098e686ad3276a160275146db302714e1fbbd6cdae99ba605a81cb523e31 -static/js/main.0ab96b0b.chunk.js.map,1632593518257,3b472eefbf6b80c847a040215d2bff323d654a7e2cebaf1c045f5fa1d87233cc -static/js/runtime-main.40f009af.js.map,1632593518257,359893654bf38c8291f9ff76b7b5b760665e4d07ab1c0b6c266442e7dceab6f4 -static/js/0.1acf2ae6.chunk.js.map,1632593518252,9dd8d90efd1329401c1f85d308b24ae17b054eb4cca34de50f7c85b303ffb030 -static/js/1.e406b09f.chunk.js,1632593518210,724493277ad7f88ebc5da1150ba8e55bca6fc990dc2f2ba5e6cf0dfba741eef2 -static/js/4.6df86403.chunk.js,1632593518210,35c7922d442a8b8d6ae3664133890a8f0ce32743a2386e4e955a832c93efcd02 -static/js/1.e406b09f.chunk.js.map,1632593518256,91e0c7f5ada149dc516e453e53bd2bee2a6f6c111a5d3e3605c776fc5a21c6a7 -static/js/4.6df86403.chunk.js.map,1632593518257,920b7878fdabb0d63421231da6364bba8404031238584d97809190b13b9cf449 +asset-manifest.json,1632723561795,a23bc815323edac99ff1fe907c8c300af74b68246fe09817fdbb350af10a3de0 +index.html,1632723561702,70ad6254a192cf98b267f857f2588218c304f9eaa97604956764dacc5efa59bc +precache-manifest.ae76ec3cf382509c2c7bf3e7bebf9aa4.js,1632723561702,01bc3c24a9cf1ca160953ba8885fe677dd4b2c22d7ef9b8381bca718a3591fc4 +service-worker.js,1632723561702,37777bd7772ba5f1378e2e0da67106e43fffaa098b3b2b792d074183bef16867 +static/css/0.073b2a2b.chunk.css,1632723561672,30ec59ed6b13fa3ab059a5ad25645dc421e4841c77151c6baa7092e83955ec1c +static/css/0.073b2a2b.chunk.css.map,1632723561702,f4530584312106e6df5afce16f654685a3c5b7c85411c0a3f4dd1725a51369ed +static/css/11.87cd5d6d.chunk.css,1632723561702,8e492686442c3a6d5e9f88e59d83882f313e8f3cca79e601a5dff7104911a2f9 +static/css/10.87cd5d6d.chunk.css,1632723561698,b437a376e469631f8732c0447d7cd54f240e702b1cb3b2b1353b6c066ce5552d +static/css/10.87cd5d6d.chunk.css.map,1632723561702,dbcb5aa80eeabc7c707c539a93bb0b150ed7681fe77c6c988777a1e2d873f2ee +static/css/11.87cd5d6d.chunk.css.map,1632723561702,abae073eb3467301630acb58a4874c811bc5fd5b383ffcb74504b945385511a0 +static/css/5.55f5065a.chunk.css,1632723561672,91da8b6c1f496c419de2737c455a6c424579bf9a121ab18def61e8943f106f19 +static/css/6.d1d17f0b.chunk.css,1632723561672,6bbbf6882b70ccb8a657d55f726870349669ac11859bf499640a8889fc05806d +static/css/5.55f5065a.chunk.css.map,1632723561702,d73dcb25644df75bdba048c9be6fb6386663153a128ff5ef3fc01ed51ffe869a +static/css/7.c6b99c8d.chunk.css,1632723561697,a59318720de765f0db9dc776b83eec64ea09bded5d35bbb12293a47d5d9d184e +static/css/6.d1d17f0b.chunk.css.map,1632723561702,4c16e6add2624a830c43743fdf32b193ce325dd90854e0da2f2c0370a9ec2ff2 +static/css/8.c5ff90d1.chunk.css,1632723561672,292ed791be916723d08e1bb8fedf982d0f92b1c268a4ea90bb445d0aa653bff4 +static/css/7.c6b99c8d.chunk.css.map,1632723561702,a171a79528026356a40fdc9ae5f600d042366a79a2c9298494002ca045cc6168 +static/css/9.5028cd6e.chunk.css,1632723561698,2ea32fc36cb2486820b3895bbbba73a8dfb1d5526c82efe5d03d79725f772d17 +static/css/8.c5ff90d1.chunk.css.map,1632723561702,ea5374bd8a637d26a5a1bb451d95bc80d55ee0bc7f392814cf6623070915469f +static/css/9.5028cd6e.chunk.css.map,1632723561702,27ba7bb678eca9453cfaa2d820aa8a6fa69bff82f4201712c9615c0c4da45ace +static/css/main.0d84e07a.chunk.css,1632723561672,e66a9116282d4afc20cf91fa00f6020efcae80f0018d0e559fb9d05068f37cef +static/css/main.0d84e07a.chunk.css.map,1632723561702,6a0b94e1993e974fa65cdaccb3a8298fa1d729737bd40454212362a787cf4732 +static/js/10.a2014bcb.chunk.js,1632723561702,5f62db44789427c396541f1b1c63beef27bb81355c82bb1194dec809983fb076 +static/js/11.6b027ebc.chunk.js,1632723561702,f57c94a1fa5b2b9642e71c7eab5f479949f77ed8430d9ed550520c3a5d6e31d1 +static/js/0.1acf2ae6.chunk.js,1632723561672,ecba086b5b32da1004beda32af8f432db207575ae5caeabd50b10404a5749031 +static/js/10.a2014bcb.chunk.js.map,1632723561795,a180ea91b32a0636d15d49b159ed286dfdc7bf2b0d1937459a7c5b5a42fc26ba +static/js/11.6b027ebc.chunk.js.map,1632723561795,ff447cfbb05b6ea22c44e0e1eb6e879df04dcaedb5d0c9ebd909fed99a0ed5cc +static/js/5.aa8d53a9.chunk.js,1632723561672,351f4f7188adf78c10f1a671d1e56573b43b25fcbec67f8b4d2ba3c724a3a8f6 +static/js/6.ba0e9538.chunk.js,1632723561672,3922c44ae7f3d34a6817ad4850342c091d2242e1fa8eafe44706d066cd7ffc7f +static/js/7.29553383.chunk.js,1632723561672,6b2707d26d94a21153f7b0ac8c4caf8420f3c33fa3fab72d48eb638ccdd6a938 +static/js/5.aa8d53a9.chunk.js.map,1632723561702,ea210d5e843c7bae56c6a2c035b727d97d686cf6bc9c506a90fa566f7abe246f +static/js/6.ba0e9538.chunk.js.map,1632723561702,b51d57f173ffb138e784a7be4b981b68a3910fe1b3dc457da2a61e6c73d8ace3 +static/js/7.29553383.chunk.js.map,1632723561702,c6dead8885fea442881945dac22ca8fbf60d9f86b7987d7549a96abf85e25504 +static/js/8.6415bed6.chunk.js,1632723561672,a8cf459392c8368a2e4804153704ca83925fd7de151e0760e5c14fe8260b0991 +static/js/8.6415bed6.chunk.js.map,1632723561795,a4d338af776755accc3c444b33baf85e665bddc2e5ca4a943e82782a1e0b0a53 +static/js/9.a761807d.chunk.js,1632723561698,94242ad743eb727500b39bbeec775934a24c4ced4bd67fb477ca59072c8cacc0 +static/js/main.0ab96b0b.chunk.js,1632723561672,aef0661d64e8ec79becdb01095cd0c05d7db62289f793f30de3b1cb82f1e82b3 +static/js/9.a761807d.chunk.js.map,1632723561702,90b5abb9051f3d90f48428af03e63a85d11b0dc7f6e9e3f62601dde8a753b7b9 +static/js/runtime-main.3b29210e.js,1632723561672,c13bb9b72188a894476e6d21a5a17b9dd02a8ec2c4a44868f5bc0c5b0542c88c +static/js/main.0ab96b0b.chunk.js.map,1632723561702,9c2e0a09447dba43233b37f27d26e090d8dff8bceca9e636170159e2a7194417 +static/js/runtime-main.3b29210e.js.map,1632723561702,16e4ae1aa3fb5a5f571d503d6c2bcb4ae26435dfdf4fc32d832bfbad790fb0a2 +static/js/0.1acf2ae6.chunk.js.map,1632723561702,9dd8d90efd1329401c1f85d308b24ae17b054eb4cca34de50f7c85b303ffb030 +static/js/1.e406b09f.chunk.js,1632723561672,724493277ad7f88ebc5da1150ba8e55bca6fc990dc2f2ba5e6cf0dfba741eef2 +static/js/4.6df86403.chunk.js,1632723561672,35c7922d442a8b8d6ae3664133890a8f0ce32743a2386e4e955a832c93efcd02 +static/js/1.e406b09f.chunk.js.map,1632723561702,91e0c7f5ada149dc516e453e53bd2bee2a6f6c111a5d3e3605c776fc5a21c6a7 +static/js/4.6df86403.chunk.js.map,1632723561702,920b7878fdabb0d63421231da6364bba8404031238584d97809190b13b9cf449 diff --git a/frontend/build/asset-manifest.json b/frontend/build/asset-manifest.json index e90f6c3..6f6ec4a 100644 --- a/frontend/build/asset-manifest.json +++ b/frontend/build/asset-manifest.json @@ -8,8 +8,8 @@ "main.css": "/static/css/main.0d84e07a.chunk.css", "main.js": "/static/js/main.0ab96b0b.chunk.js", "main.js.map": "/static/js/main.0ab96b0b.chunk.js.map", - "runtime-main.js": "/static/js/runtime-main.40f009af.js", - "runtime-main.js.map": "/static/js/runtime-main.40f009af.js.map", + "runtime-main.js": "/static/js/runtime-main.3b29210e.js", + "runtime-main.js.map": "/static/js/runtime-main.3b29210e.js.map", "static/js/4.6df86403.chunk.js": "/static/js/4.6df86403.chunk.js", "static/js/4.6df86403.chunk.js.map": "/static/js/4.6df86403.chunk.js.map", "static/css/5.55f5065a.chunk.css": "/static/css/5.55f5065a.chunk.css", @@ -31,10 +31,10 @@ "static/js/10.a2014bcb.chunk.js": "/static/js/10.a2014bcb.chunk.js", "static/js/10.a2014bcb.chunk.js.map": "/static/js/10.a2014bcb.chunk.js.map", "static/css/11.87cd5d6d.chunk.css": "/static/css/11.87cd5d6d.chunk.css", - "static/js/11.736cd0aa.chunk.js": "/static/js/11.736cd0aa.chunk.js", - "static/js/11.736cd0aa.chunk.js.map": "/static/js/11.736cd0aa.chunk.js.map", + "static/js/11.6b027ebc.chunk.js": "/static/js/11.6b027ebc.chunk.js", + "static/js/11.6b027ebc.chunk.js.map": "/static/js/11.6b027ebc.chunk.js.map", "index.html": "/index.html", - "precache-manifest.2e05672f25cc781423972dac446082df.js": "/precache-manifest.2e05672f25cc781423972dac446082df.js", + "precache-manifest.ae76ec3cf382509c2c7bf3e7bebf9aa4.js": "/precache-manifest.ae76ec3cf382509c2c7bf3e7bebf9aa4.js", "service-worker.js": "/service-worker.js", "static/css/0.073b2a2b.chunk.css.map": "/static/css/0.073b2a2b.chunk.css.map", "static/css/10.87cd5d6d.chunk.css.map": "/static/css/10.87cd5d6d.chunk.css.map", @@ -47,7 +47,7 @@ "static/css/main.0d84e07a.chunk.css.map": "/static/css/main.0d84e07a.chunk.css.map" }, "entrypoints": [ - "static/js/runtime-main.40f009af.js", + "static/js/runtime-main.3b29210e.js", "static/js/4.6df86403.chunk.js", "static/css/main.0d84e07a.chunk.css", "static/js/main.0ab96b0b.chunk.js" diff --git a/frontend/build/index.html b/frontend/build/index.html index 1e0685b..8f3eb86 100644 --- a/frontend/build/index.html +++ b/frontend/build/index.html @@ -1 +1 @@ -Place-o-share
\ No newline at end of file +Place-o-share
\ No newline at end of file diff --git a/frontend/build/service-worker.js b/frontend/build/service-worker.js index 8ed5aed..0fa7463 100644 --- a/frontend/build/service-worker.js +++ b/frontend/build/service-worker.js @@ -14,7 +14,7 @@ importScripts("https://storage.googleapis.com/workbox-cdn/releases/4.3.1/workbox-sw.js"); importScripts( - "/precache-manifest.2e05672f25cc781423972dac446082df.js" + "/precache-manifest.ae76ec3cf382509c2c7bf3e7bebf9aa4.js" ); self.addEventListener('message', (event) => {