mirror of
https://github.com/moparisthebest/mail
synced 2024-11-26 02:42:17 -05:00
[WO-531] use query parameter instead of JSON parameter
This commit is contained in:
parent
ec5edff626
commit
15710f4602
@ -124,10 +124,7 @@ define(function() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
this._restDao.get({
|
this._restDao.get({
|
||||||
uri: '/privatekey/user/' + options.userId + '/key/' + options.keyId,
|
uri: '/privatekey/user/' + options.userId + '/key/' + options.keyId + '?ignoreRecovery=true',
|
||||||
payload: {
|
|
||||||
ignoreRecovery: true
|
|
||||||
}
|
|
||||||
}, function(err) {
|
}, function(err) {
|
||||||
// 404: there is no encrypted private key on the server
|
// 404: there is no encrypted private key on the server
|
||||||
if (err && err.code !== 200) {
|
if (err && err.code !== 200) {
|
||||||
|
@ -179,10 +179,7 @@ define(function(require) {
|
|||||||
var keyId = '12345';
|
var keyId = '12345';
|
||||||
|
|
||||||
restDaoStub.get.withArgs({
|
restDaoStub.get.withArgs({
|
||||||
uri: '/privatekey/user/' + emailAddress + '/key/' + keyId,
|
uri: '/privatekey/user/' + emailAddress + '/key/' + keyId + '?ignoreRecovery=true'
|
||||||
payload: {
|
|
||||||
ignoreRecovery: true
|
|
||||||
}
|
|
||||||
}).yields();
|
}).yields();
|
||||||
|
|
||||||
privkeyDao.hasPrivateKey({
|
privkeyDao.hasPrivateKey({
|
||||||
|
Loading…
Reference in New Issue
Block a user