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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (loginInfo.username != null) {
|
let normalizedUsername = loginInfo.username;
|
||||||
loginInfo.username = loginInfo.username.toLowerCase();
|
if (normalizedUsername != null) {
|
||||||
|
normalizedUsername = normalizedUsername.toLowerCase();
|
||||||
}
|
}
|
||||||
|
|
||||||
const ciphers = await this.cipherService.getAllDecryptedForUrl(loginInfo.url);
|
const ciphers = await this.cipherService.getAllDecryptedForUrl(loginInfo.url);
|
||||||
const usernameMatches = ciphers.filter((c) =>
|
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) {
|
if (usernameMatches.length === 0) {
|
||||||
const disabledAddLogin = await this.storageService.get<boolean>(
|
const disabledAddLogin = await this.storageService.get<boolean>(
|
||||||
ConstantsService.disableAddLoginNotificationKey);
|
ConstantsService.disableAddLoginNotificationKey);
|
||||||
|
|
Loading…
Reference in New Issue