mirror of
https://github.com/bitwarden/browser.git
synced 2024-09-12 01:48:21 +02:00
Check for null cipher in edit (#1646)
Null ciphers signify a _new_ cipher, so no password repromt is required
This commit is contained in:
parent
f81195c920
commit
2f04c07262
@ -262,7 +262,7 @@ export class OrganizationVaultComponent implements OnInit, OnDestroy {
|
|||||||
|
|
||||||
async editCipherId(cipherId: string) {
|
async editCipherId(cipherId: string) {
|
||||||
const cipher = await this.cipherService.get(cipherId);
|
const cipher = await this.cipherService.get(cipherId);
|
||||||
if (cipher.reprompt != 0) {
|
if (cipher != null && cipher.reprompt != 0) {
|
||||||
if (!(await this.passwordRepromptService.showPasswordPrompt())) {
|
if (!(await this.passwordRepromptService.showPasswordPrompt())) {
|
||||||
this.go({ cipherId: null });
|
this.go({ cipherId: null });
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user