removing unnecessary lines

revert-70aa11f8
Hasunie 8 years ago
parent 3333ed0381
commit 19495321d2

@ -110,13 +110,11 @@ var userModule = function () {
* @returns {number} HTTP Status code 201 if succeeded, 409 if user already exists * @returns {number} HTTP Status code 201 if succeeded, 409 if user already exists
*/ */
publicMethods.registerUser = function (username, firstname, lastname, emailAddress, password, userRoles) { publicMethods.registerUser = function (username, firstname, lastname, emailAddress, password, userRoles) {
log.info("Register user:::::::::");
var carbon = require('carbon'); var carbon = require('carbon');
var tenantId = carbon.server.tenantId(); var tenantId = carbon.server.tenantId();
var url = carbon.server.address('https') + "/admin/services"; var url = carbon.server.address('https') + "/admin/services";
var server = new carbon.server.Server(url); var server = new carbon.server.Server(url);
var userManager = new carbon.user.UserManager(server, tenantId); var userManager = new carbon.user.UserManager(server, tenantId);
try { try {
if (userManager.userExists(username)) { if (userManager.userExists(username)) {
if (log.isDebugEnabled()) { if (log.isDebugEnabled()) {

Loading…
Cancel
Save