MCPcopy Create free account
hub / github.com/CloudBoost/cloudboost / createUserAndSendResetPassword

Function createUserAndSendResetPassword

test/test.js:2891–2911  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2889 params.settings = emailSettings;
2890
2891 function createUserAndSendResetPassword() {
2892 //Create cloudUser
2893 var obj = new CB.CloudUser();
2894 obj.set('username', "Flower");
2895 obj.set('password', passwd);
2896 obj.set('email', "support@cloudboost.io");
2897
2898 obj.save({
2899 success: function (newObj) {
2900 CB.CloudUser.resetPassword("support@cloudboost.io", {
2901 success: function (resp) {
2902 done();
2903 }, error: function (error) {
2904 done(error);
2905 }
2906 });
2907 }, error: function (err) {
2908 done(err);
2909 }
2910 });
2911 }
2912
2913 if (!window) {
2914 //Lets configure and request

Callers 1

test.jsFile · 0.70

Calls 3

doneFunction · 0.50
setMethod · 0.45
saveMethod · 0.45

Tested by

no test coverage detected