We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7379828 commit c5ed2f8Copy full SHA for c5ed2f8
src/node/routes/index.ts
@@ -11,7 +11,7 @@ import { plural } from "../../common/util"
11
import { AuthType, DefaultedArgs } from "../cli"
12
import { rootPath } from "../constants"
13
import { Heart } from "../heart"
14
-import { replaceTemplates } from "../http"
+import { replaceTemplates, redirect } from "../http"
15
import { PluginAPI } from "../plugin"
16
import { getMediaMime, paths } from "../util"
17
import { WebsocketRequest } from "../wsRouter"
@@ -112,6 +112,10 @@ export const register = async (
112
113
if (args.auth === AuthType.Password) {
114
app.use("/login", login.router)
115
+ } else {
116
+ app.all("/login", (req, res) => {
117
+ redirect(req, res, "/", {})
118
+ })
119
}
120
121
app.use("/proxy", proxy.router)
0 commit comments