我想创建管理员用户,我尝试过以下尝试失败。任何线索?
提前致谢
require("ti.cloud").Users.create({
email:$.email.value,
first_name: $.firstname.value,
last_name: $.lastname.value,
password: $.password1.value,
password_confirmation: $.password1.value,
admin:true,
}, function (e) {
Ti.API.info(e);
if (e.success) {
//User created not admin...
} else {
Ti.API.info('Error:\n' +((e.error && e.message) || JSON.stringify(e)));
}
});