- jsonwebtoken
// Please remember to nom install this!
- Add forgetpw.ejs
- Add Purest.ejs
- In admin.ejs, add Line 37 - 39, forget password related
- Add Line 62 - 64, style of class forgetpw
- Add Line 22, resettoken // Not sure if it really adds in or not
- Add Line 21, 22, define jwt and secret
- Add Line 239 - 326, function forgetpassword, getUserinforgetpw, resetpassword
- Add Line 20 - 22, app.get'/forgetpw’
- Add Line 75 - 77, app.post'/forgetpassword'
- Add Line 79 - 81, app.get ‘/reset/:token'
- Add Line 83-85, app.post'/resetpw'
- In socket join room, based on the length within the room to distinguish the light to on or off
- also add socket.leave room
- also add if users > 2 then redirect to index
Add var admin, in socket user_joined, addClass if users is equal to 2
css for the light
Add restrict in interact('.draggable')
- Add div to include all back and front side
- create function switchboard()
- then emit the button switch click
- socket on for switch_boards
socket on for switch
fix the reset function
fix function in login in users.js
- Not working if teacher left the room first due to its based on users within the room length, not getting user id