// <summary> // update user record // </summary> // <param name="user">user</param> // <param name="data"></param> public void updateUser(OCP.IUser user, JObject data) { var userData = this.getUser(user); var updated = true; if (userData == null) { this.insertNewUser(user, data); } else if (userData != data) { data = this.checkEmailVerification(userData, data, user); data = this.updateVerifyStatus(userData, data); this.updateExistingUser(user, data); } else { // nothing needs to be done if new and old data set are the same updated = false; } if (updated) { //this.eventDispatcher.dispatch( // 'OC\AccountManager::userUpdated', // new GenericEvent(user, data) //); } }
public IAccount getAccount(OCP.IUser user) { return(this.parseAccountData(user, this.getUser(user))); }