remove duplicate slashes for auth token path

This commit is contained in:
myl7 2022-08-04 05:24:30 +00:00
parent 677287d3e2
commit 99d1a1efbd

View file

@ -90,7 +90,7 @@ export function getAuthTokenPath(path: string) {
for (let r of protectedRoutes) {
r = r.toLowerCase().replace(/\/$/, '') + '/'
if (path.startsWith(r)) {
authTokenPath = `${r}/.password`
authTokenPath = `${r}.password`
break
}
}