1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-17 08:43:33 +00:00

replace jwthelper

This commit is contained in:
Kyle Spearrin
2016-09-03 00:11:57 -04:00
parent e322c77725
commit 4c29b61189
3 changed files with 63 additions and 8 deletions

View File

@@ -30,13 +30,13 @@
return;
}
//var decodedToken = jwtHelper.decodeToken(token);
var twoFactor = false;// decodedToken.authmethod === "TwoFactor";
var decodedToken = this.tokenService.decodeToken(token);
var twoFactor = decodedToken.authmethod === "TwoFactor";
_userProfile = {
//id: decodedToken.nameid,
//email: decodedToken.email,
//twoFactor: twoFactor
id: decodedToken.nameid,
email: decodedToken.email,
twoFactor: twoFactor
};
if (!twoFactor && profile) {