Implement automated login (Google Account).

This commit is contained in:
Valverde Antonio
2014-07-10 12:02:50 +09:00
parent 87a51ef76d
commit d398b7e5fb
8 changed files with 252 additions and 6 deletions

View File

@@ -338,7 +338,7 @@ module.exports = function(options) {
)
])
})
.on('account.add', function(channel, responseChannel) {
.on('account.addmenu', function(channel, responseChannel) {
joinChannel(responseChannel)
push.send([
channel
@@ -348,6 +348,16 @@ module.exports = function(options) {
)
])
})
.on('account.add', function(channel, responseChannel, data) {
joinChannel(responseChannel)
push.send([
channel
, wireutil.transaction(
responseChannel
, new wire.AccountAddMessage(data.user, data.password)
)
])
})
.on('ringer.set', function(channel, responseChannel, data) {
joinChannel(responseChannel)
push.send([