Skip to content
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.

🎨 Added auto-login to private site when viewing site preview in admin #1286

Merged
merged 1 commit into from
Aug 12, 2019

Conversation

kevinansfield
Copy link
Collaborator

closes TryGhost/Ghost#10995

  • when first loading the site preview, if private mode is enabled submit the login form in the background to retrieve the session cookie before loading the iframe
  • refactors post-authentication preloading to ensure it occurs before post-authentication route hooks are called
  • adds showSuccess attribute to <GhTaskButton> so that when set to false it can stay in the running state after "success" to avoid state change flashes whilst waiting for a transition

closes TryGhost/Ghost#10995

- when first loading the site preview, if private mode is enabled submit the login form in the background to get the cookie before loading the iframe
- refactors post-authentication preloading to ensure it occurs before post-authentication route hooks are called
- adds `showSuccess` attribute to `<GhTaskButton>` so that when set to `false` it can stay in the running state after "success" to avoid state change flashes whilst waiting for a transition
@JohnONolan
Copy link
Member

👌 👌 👌

@kevinansfield kevinansfield merged commit 7c66d66 into TryGhost:master Aug 12, 2019
@kevinansfield kevinansfield deleted the auto-login-to-private branch August 12, 2019 08:11
peterzimon pushed a commit to kevinansfield/Ghost-Admin that referenced this pull request Aug 13, 2019
…TryGhost#1286)

closes TryGhost/Ghost#10995

- when first loading the site preview, if private mode is enabled submit the login form in the background to get the cookie before loading the iframe
- refactors post-authentication preloading to ensure it occurs before post-authentication route hooks are called
- adds `showSuccess` attribute to `<GhTaskButton>` so that when set to `false` it can stay in the running state after "success" to avoid state change flashes whilst waiting for a transition
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants