Comment getEmailPusher

pull/21833/head
David Baker 2016-05-04 09:41:36 +01:00
parent 6a596f034f
commit 6dd530e2a4
1 changed files with 6 additions and 0 deletions

View File

@ -78,6 +78,12 @@ module.exports = {
return cli.setPassword(authDict, new_password);
},
/**
* Returns the email pusher (pusher of type 'email') for a given
* email address. Email pushers all have the same app ID, so since
* pushers are unique over (app ID, pushkey), there will be at most
* one such pusher.
*/
getEmailPusher: function(pushers, address) {
if (pushers === undefined) {
return undefined;