Skip to content

Commit 411abec

Browse files
committed
Fix decryption in Encryption UI
The {cipher} marker needs to be stripped before passing the encrypted value to the decryption endpoint
1 parent 69b4ace commit 411abec

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/webapp/app/registry/encryption/encryption.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export class JhiEncryptionComponent implements OnInit, OnDestroy {
3535
}
3636

3737
decrypt() {
38-
this.encryptionService.decrypt(this.encryptedText).subscribe(
38+
this.encryptionService.decrypt(this.encryptedText.replace(/^{cipher}/, '')).subscribe(
3939
(response) => {
4040
this.result = response;
4141
this.textToEncrypt = response;

0 commit comments

Comments
 (0)