File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import { plural } from "../../common/util"
1111import { AuthType , DefaultedArgs } from "../cli"
1212import { rootPath } from "../constants"
1313import { Heart } from "../heart"
14- import { replaceTemplates } from "../http"
14+ import { replaceTemplates , redirect } from "../http"
1515import { PluginAPI } from "../plugin"
1616import { getMediaMime , paths } from "../util"
1717import { WebsocketRequest } from "../wsRouter"
@@ -112,6 +112,10 @@ export const register = async (
112112
113113 if ( args . auth === AuthType . Password ) {
114114 app . use ( "/login" , login . router )
115+ } else {
116+ app . all ( "/login" , ( req , res ) => {
117+ redirect ( req , res , "/" , { } )
118+ } )
115119 }
116120
117121 app . use ( "/proxy" , proxy . router )
You can’t perform that action at this time.
0 commit comments