Make get_session() readonly and throw an exception if session cannot be found rather...
authorNick Downing <nick@ndcode.org>
Thu, 27 Jan 2022 11:57:56 +0000 (22:57 +1100)
committerNick Downing <nick@ndcode.org>
Thu, 27 Jan 2022 11:57:56 +0000 (22:57 +1100)
commit65ae64b63816212a204c894bc61dadc455e6ea3d
tree9060fa5bb35eb763664d2e7fc57d2c5ed049fce8
parent8c6cdd3011ce2ae7cb274baabf2d719e07903958
Make get_session() readonly and throw an exception if session cannot be found rather than trying to create it, make get_account() throw an exception if not signed in, make get_navigation() and the related navbar logic throw useful exceptions if the navigation tree doesn't exist or doesn't the match site pages, make get_nodemailer throw useful exceptions if the nodemailer data doesn't exist
35 files changed:
_lib/get_account.jst
_lib/get_navigation.jst
_lib/get_nodemailer.jst
_lib/get_session.jst
_lib/navbar.jst
_lib/page.jst
api/account/change_details/get.json.jst
api/account/change_details/get_draft.json.jst
api/account/change_details/set.json.jst
api/account/change_details/set_draft.json.jst
api/account/change_password.json.jst
api/account/sign_in.json.jst
api/account/sign_out.json.jst
api/account/sign_up/create_account.json.jst
api/account/sign_up/get_draft.json.jst
api/account/sign_up/set_draft.json.jst
api/contact/get_draft.json.jst
api/contact/set_draft.json.jst
api/errors.json
api/feedback/get_draft.json.jst
api/feedback/set_draft.json.jst
api/globals/get.json.jst
api/globals/set.json.jst
api/navigation/get.json.jst
api/navigation/set.json.jst
api/nodemailers/get.json.jst
api/nodemailers/set.json.jst
api/verification_image.png.jst
contact/index.html.jst
my_account/index.html.jst
my_account/password_reset/index.html.jst
my_account/send_verification_email/index.html.jst
my_account/sign_up/index.html.jst
my_account/verify_email/index.html.jst
my_account/verify_password/index.html.jst