[mirotalksfu] - fix

هذا الالتزام موجود في:
Miroslav Pejic
2024-03-05 17:48:43 +01:00
الأصل 51d985e78f
التزام 8fcc4e2e85

عرض الملف

@@ -449,7 +449,9 @@ function startServer() {
if (isPeerValid) {
log.debug('PEER LOGIN OK', { ip: ip, authorized: true });
const token = jwt.sign({ username: username, password: password, presenter: false }, jwtCfg.JWT_KEY, {
const isPresenter =
config.presenters && config.presenters.list && config.presenters.list.includes(username).toString();
const token = jwt.sign({ username: username, password: password, presenter: isPresenter }, jwtCfg.JWT_KEY, {
expiresIn: jwtCfg.JWT_EXP,
});
return res.status(200).json({ message: token });