fixes issue #510
assign a random password if none is supplied. this is what the API spec has always said would happen, but for some reason, it wasn't happening now it does. note that if you have any kind of requirements that your passwords must be numeric, a certain length, etc, you really need to pass them in yourself git-svn-id: http://bigbluebutton.googlecode.com/svn/trunk@4276 af16638f-c34d-0410-8cfa-b39d5352b314
This commit is contained in:
parent
be9314d6cf
commit
814df400bb
@ -26,6 +26,7 @@ import java.util.Collections;
|
||||
import org.apache.commons.codec.binary.Hex;
|
||||
|
||||
import org.apache.commons.codec.digest.DigestUtils;
|
||||
import org.apache.commons.lang.RandomStringUtils;
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
|
||||
import org.bigbluebutton.web.services.DynamicConferenceService;
|
||||
@ -107,6 +108,12 @@ class ApiController {
|
||||
}
|
||||
return;
|
||||
}
|
||||
if (StringUtils.isEmpty(attPW)) {
|
||||
attPW = RandomStringUtils.randomAlphanumeric(8);
|
||||
}
|
||||
if (StringUtils.isEmpty(modPW)) {
|
||||
modPW = RandomStringUtils.randomAlphanumeric(8);
|
||||
}
|
||||
DynamicConference conf = new DynamicConference(name, mtgID, attPW, modPW, maxParts)
|
||||
conf.setVoiceBridge(voiceBr == null || voiceBr == "" ? mtgID : voiceBr)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user