Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

Commit

Permalink
Fix #3493, send unauth'd /shots to /#tour
Browse files Browse the repository at this point in the history
This lets a user who accesses Screenshots from the Library, but has never authenticated or used Screenshots, get redirected to an onboarding tour.
  • Loading branch information
ianb committed Sep 14, 2017
1 parent 74ac3f3 commit af473c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/pages/shotindex/controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ exports.launch = function(m) {
}
let authTimeout = setTimeout(() => {
// eslint-disable-next-line no-global-assign
location = location.origin;
location = location.origin + "/#tour";
}, FIVE_SECONDS);
window.wantsauth.addAuthDataListener((data) => {
if (location.search.indexOf("reloaded") > -1) {
Expand Down

0 comments on commit af473c3

Please sign in to comment.