1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-15 07:43:35 +00:00

react to two factor changes in auth apis

This commit is contained in:
Kyle Spearrin
2017-01-24 22:20:52 -05:00
parent a55a70564f
commit 4057c478c6
2 changed files with 6 additions and 6 deletions

View File

@@ -5,12 +5,12 @@
folderService, settingsService, syncService) {
var _service = {};
_service.logIn = function (email, masterPassword, twoFactorCode) {
_service.logIn = function (email, masterPassword, twoFactorToken) {
email = email.toLowerCase();
var key = cryptoService.makeKey(masterPassword, email);
var deferred = $q.defer();
cryptoService.hashPassword(masterPassword, key, function (hashedPassword) {
var request = new TokenRequest(email, hashedPassword, twoFactorCode);
var request = new TokenRequest(email, hashedPassword, twoFactorToken);
apiService.postIdentityToken(request, function (response) {
// success