ensure .password file response body is string from axios

This commit is contained in:
myl7
2022-07-15 17:37:43 +08:00
parent e7cf44b52a
commit 18107590d2
+1 -1
View File
@@ -134,7 +134,7 @@ export async function checkAuthRoute(
if (
!compareHashedToken({
odTokenHeader: odTokenHeader,
dotPassword: odProtectedToken.data,
dotPassword: odProtectedToken.data.toString(),
})
) {
return { code: 401, message: 'Password required.' }