fix(frontend): redirect from /setup if already initialized (#1238)

This commit is contained in:
TheCatLady
2021-03-20 21:20:33 -04:00
committed by GitHub
parent 380d36119f
commit 80165038fd
2 changed files with 6 additions and 2 deletions

View File

@@ -180,7 +180,7 @@ CoreApp.getInitialProps = async (initialProps) => {
);
user = response.data;
if (router.pathname.match(/login/)) {
if (router.pathname.match(/(setup|login)/)) {
ctx.res.writeHead(307, {
Location: '/',
});