28 Commits

Author SHA1 Message Date
newtbot fea986a841 Fix file paths and add password reset functionality 2024-01-31 03:17:24 +08:00
noot 12597ad774 reset password wip 2024-01-30 16:53:42 +08:00
noot e0b64b2252 Merge branch 'main' of https://github.com/Newtbot/MP 2024-01-30 15:58:31 +08:00
noot 4346f92471 blah 2024-01-30 15:58:05 +08:00
viviannTam 7bd92805dd c 2024-01-30 15:54:04 +08:00
viviannTam 31fe6b3c7c b 2024-01-30 14:48:17 +08:00
newtbot 129ca202c0 Update API routes and sensor data functionality And API.ejs 2024-01-30 02:59:14 +08:00
newtbot 8836a3cfd4 Add apilog route and remove unused files 2024-01-29 03:40:49 +08:00
newtbot c268e1d33d Add routes to get location and sensor by name
Added viewdata using chart.js
2024-01-29 00:44:10 +08:00
newtbot d491750916 Fix database model associations and update API route 2024-01-27 20:15:29 +08:00
newtbot c234aa3616 Add nodemailer configuration and console.log statement
Update formAJAX function to log data from the server
Add getUserByEmail and checkEmail functions
Update profile.ejs to require login
Update addSensorData function to emit new sensor data
Update api.css with styling changes
Update token route to generate and send token email
Update authChecker middleware to allow user and token routes
2024-01-27 04:52:02 +08:00
newtbot d38423fa6d Update CSS, add relationship between sensorModel and locationModel, and remove console.log statements 2024-01-26 04:07:11 +08:00
newtbot ba498a4d4b BLAH stupid middleware error 2024-01-25 05:11:28 +08:00
newtbot 057fbe2afb iotsensor fixed but session valid broken 2024-01-25 03:26:56 +08:00
newtbot 7403f66c8a more fix 2024-01-24 16:01:30 +08:00
newtbot d0aeab286a a 2024-01-24 14:37:57 +08:00
newtbot e710fa15a1 overhaul 2024-01-24 14:21:13 +08:00
newtbot 5b262eb803 Add JavaScript files and edit profile CSS
1) finished edit profile with delete profile
2024-01-23 01:44:11 +08:00
newtbot 877eaeae43 update
1) added html regex
2) added welcome user
3) change forgotpassword and resetpassword to ejs
2024-01-21 21:06:10 +08:00
newtbot d2ad32e6d6 added api page
added login
added api.ejs
added middleware for authorization check
2024-01-21 03:58:03 +08:00
newtbot 32be41ea46 login WIP 2024-01-20 04:13:20 +08:00
newtbot 2ecb69c828 a 2024-01-20 01:22:19 +08:00
newtbot 1ed59aba97 Update apiDatabase.js 2024-01-20 01:20:44 +08:00
newtbot 269627597e a 2024-01-17 16:45:22 +08:00
newtbot 915e4a7e5c apimiddleware done?
Not fully tested
2024-01-16 20:54:18 +08:00
newtbot 7e4b2d8026 WIP token 2024-01-16 04:43:39 +08:00
newtbot 290d0653d9 models update 2024-01-15 01:56:18 +08:00
newtbot 935709c2eb tidy up 2024-01-14 23:31:00 +08:00