discourse/app/views/layouts
Jeff Wong 3189dab622 FIX: correctly remove authentication_data cookie on oauth login flow
Additionally correctly handle cookie path for authentication_data

There were two bugs that exposed an interesting case where two discourse
instances hosted across two subfolder installs in the same domain
with oauth may clash and cause strange redirection on first login:

Log in to example.com/forum1. authentication_data cookie is set with path /
On the first redirection, the current authentication_data cookie is not unset.
Log in to example.com/forum2. In this case, the authentication_data cookie
is already set from forum1 - the initial page load will incorrectly redirect
the user to the redirect URL from the already-stored cookie, to /forum1.

This removes this issue by:

* Setting the cookie for the correct path, and not having it on root
* Correctly removing the cookie on first login
2020-03-21 14:34:25 -07:00
..
_head.html.erb Remove unused & empty author meta tag 2019-06-03 12:00:14 +02:00
application.html.erb FIX: correctly remove authentication_data cookie on oauth login flow 2020-03-21 14:34:25 -07:00
crawler.html.erb DEV: consistent theme lookup in application / crawler / no-ember views (#7955) 2019-07-30 19:00:46 +02:00
email_template.html.erb FEATURE: customization of html emails (#7934) 2019-07-30 15:05:08 -04:00
embed.html.erb UI: Add viewport meta tag to embedded topics layout 2019-09-12 14:14:32 -04:00
finish_installation.html.erb Upgrade to FontAwesome 5 (take two) (#6673) 2018-11-26 16:49:57 -05:00
no_ember.html.erb UX: Hide login/signup header buttons during authentication flows 2019-08-08 13:57:18 +01:00