]> rtime.felk.cvut.cz Git - coffee/coffee-flask.git/commit
Improve the last commit
authorMichal Sojka <michal.sojka@cvut.cz>
Thu, 16 Aug 2018 09:46:55 +0000 (11:46 +0200)
committerMichal Sojka <michal.sojka@cvut.cz>
Thu, 16 Aug 2018 09:51:14 +0000 (11:51 +0200)
commit09105314174cdec5fba1e2a5b1bbfee5f69f4381
tree3ed36200b9ab3499a78d6be6c41242ec12b05342
parent4a779e2539365c036f53df6b07b8b92d82ad4bd7
Improve the last commit

- Move id_user variable to where other variables are defined and
  document it.
- Set its value in the login() function. All other activities related
  to logging in are in that function, so I don't see a reason, why
  this should be outside.
- Unset this variable in addCoffee() and logout(). We should not need
  it after these events.
templates/main.js