[mirotalk] - fix user_auth

This commit is contained in:
Miroslav Pejic
2025-01-26 09:50:50 +01:00
parent 60e12d50c9
commit 53d5b79070
4 changed files with 10 additions and 10 deletions
+1 -1
View File
@@ -54,7 +54,7 @@ SESSION_SECRET='mirotalk-p2p-oidc-secret'
HOST_PROTECTED=false # true or false
HOST_USER_AUTH=false # true or false
HOST_USERS='[{"username": "username", "password": "password"},{"username": "username2", "password": "password2"}]'
HOST_USERS='[{"username": "admin", "password": "admin"},{"username": "guest", "password": "guest"}]'
# JWT token config
+4 -4
View File
@@ -39,7 +39,7 @@ dependencies: {
* @license For commercial use or closed source, contact us at license.mirotalk@gmail.com or purchase directly from CodeCanyon
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-p2p-webrtc-realtime-video-conferences/38376661
* @author Miroslav Pejic - miroslav.pejic.85@gmail.com
* @version 1.4.61
* @version 1.4.62
*
*/
@@ -650,10 +650,10 @@ app.get('/join/*', function (req, res) {
// Login
app.get(['/login'], (req, res) => {
if (!hostCfg.protected) {
return res.redirect('/');
if (hostCfg.protected || hostCfg.user_auth) {
return res.sendFile(views.login);
}
res.sendFile(views.login);
res.redirect('/');
});
// Logged
+2 -2
View File
@@ -1,6 +1,6 @@
{
"name": "mirotalk",
"version": "1.4.61",
"version": "1.4.62",
"description": "A free WebRTC browser-based video call",
"main": "server.js",
"scripts": {
@@ -58,7 +58,7 @@
"js-yaml": "^4.1.0",
"ngrok": "^5.0.0-beta.2",
"nodemailer": "^6.10.0",
"openai": "^4.80.0",
"openai": "^4.80.1",
"qs": "^6.14.0",
"socket.io": "^4.8.1",
"swagger-ui-express": "^5.0.1",
+3 -3
View File
@@ -15,7 +15,7 @@
* @license For commercial use or closed source, contact us at license.mirotalk@gmail.com or purchase directly from CodeCanyon
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-p2p-webrtc-realtime-video-conferences/38376661
* @author Miroslav Pejic - miroslav.pejic.85@gmail.com
* @version 1.4.61
* @version 1.4.62
*
*/
@@ -1268,7 +1268,7 @@ function handleUnauthorized() {
allowEscapeKey: false,
background: swBg,
imageUrl: images.forbidden,
title: 'Oops, Unauthorized',
title: 'Ops, Unauthorized',
text: 'The host has user authentication enabled',
confirmButtonText: `Login`,
showClass: { popup: 'animate__animated animate__fadeInDown' },
@@ -11039,7 +11039,7 @@ function showAbout() {
Swal.fire({
background: swBg,
position: 'center',
title: '<strong>WebRTC P2P v1.4.61</strong>',
title: '<strong>WebRTC P2P v1.4.62</strong>',
imageAlt: 'mirotalk-about',
imageUrl: images.about,
customClass: { image: 'img-about' },