mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-13 11:23:50 +00:00
refactor: use strict typing
This commit is contained in:
@@ -81,7 +81,9 @@ export function makeAuthenticateMiddleware(prefix: string) {
|
||||
// we use query params for generating authenticated URLs and for clients like the companion module
|
||||
// if the user gives is a token in the query params, we set the cookie to be used in further requests
|
||||
if (req.query.token === hashedPassword) {
|
||||
setSessionCookie(res, hashedPassword);
|
||||
if (hashedPassword !== undefined) {
|
||||
setSessionCookie(res, hashedPassword);
|
||||
}
|
||||
return next();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user