1
0
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:
Kyle Spearrin 2017-01-28 17:36:20 -05:00
parent 5bce6095a4
commit 8692b3b40f

View File

@ -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;
}