docs: function saveUser(user, req, cb) {
    user.markModified('attributes');
    user.markModified('password');
    if (user.extensionattributes && user.extensionattributes.login && user.extensionattributes.login.flagged) {
      user.extensionattributes.login.flagged = false;
      user.extensionattributes.login.attempts = 0;
      user.extensionattributes.login.timestamp = moment().subtract(loginExtSettings.timeout.attempt_interval.time, loginExtSettings.timeout.attempt_interval.unit);
      user.markModified('extensionattributes');
    }
    user.save(function (err, usr) {
      if (err) {
        cb(err, null);
      }
      cb(null, usr, req);
    });
  }