Ghost/ghost/core/test/unit/server
Simon Backx d0042b550a
Fixed redirecting back to account home after sign in in Portal (#16487)
refs https://github.com/TryGhost/Team/issues/2674

When going to /#/portal/account when not signed in, you are redirected
to the login page. But once signed in, you aren't redirected back to the
account page. This fixes this issue by adding an extra and optional
redirect parameter when requesting a magic token via email.

This new parameter allows to override the default behaviour of using the
Referer HTTP header, which doesn't include the hash/fragment part of the
URL.

The referrer is already restricted to only allow redirects to the site,
not external URLs.
2023-04-04 18:07:37 +02:00
..
adapters Fixed errors being logged by unit tests 2023-03-22 16:25:23 +00:00
data Added Portal signup terms settings and migration (#16545) 2023-04-04 10:04:12 +02:00
lib Readded failing test 2023-04-03 11:35:40 +02:00
models Fixed getLazyRelation returning new model for optional relations (#16411) 2023-03-14 10:58:58 +01:00
services Fixed redirecting back to account home after sign in in Portal (#16487) 2023-04-04 18:07:37 +02:00
web Removed all unused variables from test files 2023-03-10 14:29:55 +01:00
notify.test.js Fixed configUtils and adapter cache issues in E2E tests (#16167) 2023-01-30 14:06:20 +01:00
overrides.test.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00