fix #1528: OTP generation for stored values

This commit is contained in:
antelle 2020-06-07 09:47:36 +02:00
parent 3001afd9db
commit fe245dc95e
No known key found for this signature in database
GPG Key ID: 63C9777AAB7C563C
3 changed files with 6 additions and 2 deletions

View File

@ -205,7 +205,7 @@ function createDetailsFields(detailsView) {
if (field === 'otp' && model.otpGenerator) {
if (!otpEntry) {
fieldViews.push(
FieldViewOtp({
new FieldViewOtp({
name: '$' + field,
title: field,
value() {

View File

@ -448,8 +448,8 @@ class DetailsView extends View {
return;
}
this.model.initOtpGenerator();
if (this.model.external) {
this.model.initOtpGenerator();
return;
}
@ -757,6 +757,7 @@ class DetailsView extends View {
entryUpdated(skipRender) {
Events.emit('entry-updated', { entry: this.model });
this.initOtp();
if (!skipRender) {
this.render();
}

View File

@ -1,5 +1,8 @@
Release notes
-------------
##### v1.15.1 (2020-06-06)
`-` fix #1528: OTP generation for stored values
##### v1.15.0 (2020-06-06)
`+` YubiKey integration in two modes: OATH and Challenge-Response
`+` configs are now encrypted with a key stored in keychain