GithubHelp home page GithubHelp logo

cpl / dinen Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 1.0 55.82 MB

COMP10120 Team Project (2016/17) - Group X3

License: Other

PHP 20.85% HTML 26.93% CSS 5.03% JavaScript 30.02% Shell 17.18%
dinen manchester university

dinen's Introduction

dinen's People

Contributors

acowdy avatar cpl avatar dainiussa avatar friteee avatar ocordu avatar stefanpristoleanu avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

friteee

dinen's Issues

User session cookie is not removed on logout

Clicking the logout button doesn't remove the session cookie from the user's browser. This means that going to the dashboard page by typing the URL into the address bar will let them view their page without logging in.

Steps to reproduce:

  1. Log in through the login page
  2. Click 'log out'
  3. Type 'dinen.ddns.net/dashboard' into the URL bar

Question about staff

How we'll determine if staff member belongs to a restaurant? Maybe have separate tables for staff/users/managers?

Order Summary Error

Apparently I cannot make a new order in the database. This is the browser console error:
requestData['order_items'] = JSON.stringify(orderItems);
Uncaught ReferenceError: orderItems is not defined
at HTMLButtonElement.Payment.me.submitOrder (:45:49)

Finish the menu.html, order.html, search.html

  • minus button in menu.html to be moved to each menu item. same goes for order.html
  • put a link on the last button in order.html to payment.html
  • set up the search.html page with bootstrap
  • add a JS function to delete a menu item

confirm.php uses own MySQL connection.

Change it to use connect db.
Is it possible to remove the connect_db script, and each script to use the config file?
This will make it easier for a script like confirm.php

JWT isn't always blacklisted (logout)

Example JWT that wasn't blacklisted:

eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJodHRwczpcL1wvZGluZW4uZGRucy5uZXRcL2FwaVwvdjEiLCJzdWIiOiJqYWtAYWwub3JnIiwiYXVkIjoiaHR0cHM6XC9cL2RpbmVuLmRkbnMubmV0IiwiZXhwIjoxNDg4MDMxMjA1LCJuYmYiOjE0ODgwMDk2MDUsImlhdCI6MTQ4ODAwOTYwNSwianRpIjoiM0dxNjE3cDFPY3VocFlzMkY1NWxTNUtoQkZuWFwvdk5UNDNQb1Z6SmRFdTg9IiwidXNlcl9uYW1lIjoiSmFrIEFsIiwidXNlcl9jYXRlZ29yeSI6Im1hbmFnZXIiLCJ1c2VyX2VtYWlsIjoiamFrQGFsLm9yZyIsInVzZXJfaWQiOjE0fQ==.tZo62oNDpa+ICg8lObZj+ehc3Vp8tUxAQ00ES8P7H7o=

htmlspecialchars() doesn't appear to affect the JWT.
This may have nothing to do with the JWT.
checkJWT() seems to fail for processLogoutRequest(), but not processGetRestaurantsRequest()

Handling of old orders

Should we delete old, finish orders in cook module? How will we know if order is finished?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.