delete parameter

parent d55666c0
......@@ -44,7 +44,7 @@ module.exports = function (User) {
return dbUtils.dbCreateItem(User, newUser);
},
createVKUser : function (login, vk_uid, accountType, name, surname, meta) {
createVKUser : function (vk_uid, accountType, name, surname, meta) {
var newUser = {
username : surname + " " + name[0] + ".",
password : ' ',
......@@ -55,7 +55,21 @@ module.exports = function (User) {
activated : true,
vk_login : vk_uid
};
return dbUtils.dbCreateItem(User, newUser);
},
createFBUser : function (fb_uid, accountType, name, surname, meta) {
var newUser = {
username : surname + " " + name[0] + ".",
password : ' ',
accountType : accountType,
name : name,
surname : surname,
meta : meta,
activated : true,
fb_login : fb_uid
};
return dbUtils.dbCreateItem(User, newUser);
},
addLogin : function (userId,login) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment