added ignore_pin config option

git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1284 8eb893ce-cfd4-0310-b710-fb5ebe64c474
sayer/1.4-spce2.6
Stefan Sayer 18 years ago
parent 518ed60c85
commit a4bb89c874

@ -69,6 +69,7 @@ string WebConferenceFactory::MasterPassword;
int WebConferenceFactory::ParticipantExpiredDelay;
int WebConferenceFactory::RoomExpiredDelay;
int WebConferenceFactory::RoomSweepInterval;
bool WebConferenceFactory::ignore_pin = false;
int WebConferenceFactory::onLoad()
{
@ -170,6 +171,9 @@ int WebConferenceFactory::onLoad()
// default: 10s
ParticipantExpiredDelay = cfg.getParameterInt("participants_expire_delay", 10);
}
ignore_pin = cfg.getParameter("ignore_pin")=="yes";
DBG("Ignore PINs enabled: %s\n", ignore_pin?"yes":"no");
if (cfg.getParameter("rooms_expire") == "no") {
RoomExpiredDelay = -1;
@ -220,7 +224,8 @@ ConferenceRoom* WebConferenceFactory::getRoom(const string& room,
rooms[room].adminpin = adminpin;
res = &rooms[room];
} else {
if (!it->second.adminpin.empty() &&
if ((!ignore_pin) &&
(!it->second.adminpin.empty()) &&
(it->second.adminpin != adminpin)) {
// wrong pin
} else {

@ -41,6 +41,15 @@ direct_room_strip=6
#
# master_password=verysecret
# ignore_pin sets whether room admin PINs are checked when
# accessing rooms. If you are for example trust anyone who
# can access the interface, this could be set to "yes" to allow
# all to look into all conference rooms.
#
# default: no
#
# ignore_pin=yes
#
#
# feedback and statistics

Loading…
Cancel
Save