mirror of
https://github.com/bitwarden/browser.git
synced 2024-12-28 17:27:50 +01: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;
|
||||
}
|
||||
|
||||
if (this.token && this.provider) {
|
||||
if (this.token && this.provider != null && (typeof this.provider !== 'undefined')) {
|
||||
obj.twoFactorToken = this.token;
|
||||
obj.twoFactorProvider = this.provider;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user