mirror of
https://github.com/bitwarden/browser.git
synced 2025-01-08 19:18:02 +01:00
dont toLower the saved username on addLogin
This commit is contained in:
parent
80945ca1df
commit
11d34cff88
@ -285,13 +285,14 @@ export default class RuntimeBackground {
|
||||
return;
|
||||
}
|
||||
|
||||
if (loginInfo.username != null) {
|
||||
loginInfo.username = loginInfo.username.toLowerCase();
|
||||
let normalizedUsername = loginInfo.username;
|
||||
if (normalizedUsername != null) {
|
||||
normalizedUsername = normalizedUsername.toLowerCase();
|
||||
}
|
||||
|
||||
const ciphers = await this.cipherService.getAllDecryptedForUrl(loginInfo.url);
|
||||
const usernameMatches = ciphers.filter((c) =>
|
||||
c.login.username != null && c.login.username.toLowerCase() === loginInfo.username);
|
||||
c.login.username != null && c.login.username.toLowerCase() === normalizedUsername);
|
||||
if (usernameMatches.length === 0) {
|
||||
const disabledAddLogin = await this.storageService.get<boolean>(
|
||||
ConstantsService.disableAddLoginNotificationKey);
|
||||
|
Loading…
Reference in New Issue
Block a user