Work on auth error handling / reinstall
This commit is contained in:
parent
ef8a977f38
commit
f126e3b21b
5 changed files with 62 additions and 13 deletions
|
@ -173,6 +173,14 @@ TextSecureServer = function () {
|
|||
return requestVerificationCode(number, 'voice');
|
||||
};
|
||||
|
||||
self.getDevices = function(number) {
|
||||
return doAjax({
|
||||
call : 'devices',
|
||||
httpType : 'GET',
|
||||
do_auth : true
|
||||
});
|
||||
};
|
||||
|
||||
self.confirmCode = function(number, code, password,
|
||||
signaling_key, registrationId, deviceName) {
|
||||
var call = deviceName ? 'devices' : 'accounts';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue