return headers
This commit is contained in:
parent
67fd6344dd
commit
b096fd50a7
5 changed files with 10 additions and 10 deletions
|
|
@ -122,7 +122,7 @@ Identity.open = function(opts, cb) {
|
|||
|
||||
var storage = opts.storage || opts.pluginManager.get('DB');
|
||||
storage.setCredentials(opts.email, opts.password, opts);
|
||||
storage.getItem(Identity.getKeyForEmail(opts.email), function(err, data) {
|
||||
storage.getItem(Identity.getKeyForEmail(opts.email), function(err, data, headers) {
|
||||
var exported;
|
||||
if (err) {
|
||||
return cb(err);
|
||||
|
|
@ -132,7 +132,7 @@ Identity.open = function(opts, cb) {
|
|||
} catch (e) {
|
||||
return cb(e);
|
||||
}
|
||||
return cb(null, new Identity(_.extend(opts, exported)));
|
||||
return cb(null, new Identity(_.extend(opts, exported)), headers);
|
||||
});
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue