the usernames in the userlist are no longer surrounded by quotation marks

This commit is contained in:
Anton Georgiev 2014-05-26 14:45:10 +00:00
parent 6a301f4357
commit ae6fba2053

View File

@ -14,6 +14,7 @@ login = (req, resp) ->
#use the name from the textbox
console.log "\n\nThe Username passed was=" + JSON.stringify(req.body.name) + "\n\n"
joinParams.fullName = JSON.stringify req.body.name
joinParams.fullName = joinParams.fullName.replace(/['"]/g,'')
#calling createapi
bbbapi.create(createParams, serverAndSecret, {}, (errorOuter, responseOuter, bodyOuter) ->
@ -38,7 +39,7 @@ login = (req, resp) ->
"\nauth_token = " + auth_token
url = "http://192.168.0.203:3000/html5.client?meeting_id=" + meeting_id + "&user_id=" +
user_id + "&auth_token=" + auth_token + "&username=" + JSON.parse(joinParams.fullName)
user_id + "&auth_token=" + auth_token + "&username=" + joinParams.fullName
json =
resp.json({