Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Prompt person to login if they use a link to an order and they are not logged in already. #2506
If someone tries to access their order via a link of this format while logged out... https://staging1.openfood.com.au/orders/R244060841 ... they currently see an 'unauthorised' message.
This is important for subscriptions, because a big part of susbcriptions is that customers are able to edit their subs. If they're logged out when they try to edit their sub order, they'll get this confusing and abrupt 'unauthorised' message.
When does this scenario occur?
The person is prompted to login. After logging in they're either a) taken to the order page if they're the right cusotmer or b) they see the unauthorised message again if it's not the right user for that order.
Alternatively I'd expect to see better messaging, like: 'unauthorised, please login to view this page'.
Steps to Reproduce
It's a road block for customers who want to edit a sub order
PC Chrome, Staging1.
referenced this issue
Jul 27, 2018
Changing bug level to s2 as well as from my understand we have done a soft release of subscription (am I right?) and this bug is preventing to basically use the feature and I don't see a workaround. But still in "analyse and define" as the solution is still under discussion, there are various options.
the only workaround is telling them somehow (hub email) that they need to go up to the menu and login. I agree it's likely to prevent people accessing their orders and fine with upgrade to s2.