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
1 changed files with 1 additions and 1 deletions

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