我正在尝试创建用于启动即时消息的用户
$('button#register').on('click', function(event){
event.preventDefault();
$('button#register').attr('disabled', true);
clearError();
var signUpObj = {};
signUpObj.username = $('input#username').val();
signUpObj.password = $('input#password').val();
sinchClient.newUser(signUpObj, function(ticket) {
sinchClient.start(ticket, function() {
global_username = signUpObj.username;
localStorage[sessionName] = JSON.stringify(sinchClient.getSession());
}).fail(handleError);
}).fail(handleError);
})
但我收到错误消息
errorCode: 40303
message: User creation is disabled for this application
那么,我该怎么办?
答案 0 :(得分:0)
在你app的仪表板(sinch.com/dashboard)中,启用js auth