mirror of
https://github.com/bitwarden/desktop.git
synced 2024-10-05 05:08:14 +02:00
fix for 0 base int provider
This commit is contained in:
parent
5bce6095a4
commit
8692b3b40f
@ -38,7 +38,7 @@ var TokenRequest = function (email, masterPasswordHash, token, device) {
|
|||||||
obj.devicePushToken = this.device.pushToken;
|
obj.devicePushToken = this.device.pushToken;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.token && this.provider) {
|
if (this.token && this.provider != null && (typeof this.provider !== 'undefined')) {
|
||||||
obj.twoFactorToken = this.token;
|
obj.twoFactorToken = this.token;
|
||||||
obj.twoFactorProvider = this.provider;
|
obj.twoFactorProvider = this.provider;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user