Link flow: Show 'you must upgrade' on 409 server response
This commit is contained in:
parent
97b657da6d
commit
d13c3d3350
5 changed files with 85 additions and 53 deletions
|
@ -917,9 +917,13 @@ export function initialize({
|
|||
) {
|
||||
const { accessKey } = options;
|
||||
const jsonData: any = {
|
||||
supportsSms: false,
|
||||
capabilities: {
|
||||
uuid: true,
|
||||
},
|
||||
fetchesMessages: true,
|
||||
name: deviceName ? deviceName : undefined,
|
||||
registrationId,
|
||||
supportsSms: false,
|
||||
unidentifiedAccessKey: accessKey
|
||||
? _btoa(_getString(accessKey))
|
||||
: undefined,
|
||||
|
@ -929,14 +933,6 @@ export function initialize({
|
|||
const call = deviceName ? 'devices' : 'accounts';
|
||||
const urlPrefix = deviceName ? '/' : '/code/';
|
||||
|
||||
if (deviceName) {
|
||||
jsonData.name = deviceName;
|
||||
} else {
|
||||
jsonData.capabilities = {
|
||||
uuid: true,
|
||||
};
|
||||
}
|
||||
|
||||
// We update our saved username and password, since we're creating a new account
|
||||
username = number;
|
||||
password = newPassword;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue