mirror of
https://github.com/bitwarden/browser.git
synced 2025-02-18 01:41:27 +01:00
key not required in order to be considered logged in
This commit is contained in:
parent
8e620849ce
commit
25fef2d826
@ -103,11 +103,6 @@ function initUserService() {
|
||||
}
|
||||
|
||||
var self = this;
|
||||
self.cryptoService.getKey(false, function (key) {
|
||||
if (!key) {
|
||||
callback(false);
|
||||
}
|
||||
else {
|
||||
self.tokenService.getToken(function (token) {
|
||||
if (!token) {
|
||||
callback(false);
|
||||
@ -118,8 +113,6 @@ function initUserService() {
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
UserService.prototype.isTwoFactorAuthenticated = function (callback) {
|
||||
@ -128,11 +121,6 @@ function initUserService() {
|
||||
}
|
||||
|
||||
var self = this;
|
||||
self.cryptoService.getKey(false, function (key) {
|
||||
if (!key) {
|
||||
callback(false);
|
||||
}
|
||||
else {
|
||||
self.tokenService.getToken(function (token) {
|
||||
if (!token) {
|
||||
callback(false);
|
||||
@ -143,7 +131,5 @@ function initUserService() {
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
};
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user