mirror of
https://github.com/nishiki/manage-password.git
synced 2024-10-27 02:33:19 +00:00
fix bug in otp generator
This commit is contained in:
parent
11de55ccb7
commit
d185509113
4 changed files with 7 additions and 3 deletions
|
@ -1,4 +1,8 @@
|
|||
# CHANGELOG
|
||||
## v4.2.1 (2017-07-30)
|
||||
|
||||
* fix bug in otp generator
|
||||
|
||||
## v4.2.0 (2017-06-06)
|
||||
|
||||
* feat: improve the interface
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# MPW: Manage your passwords!
|
||||
[![Version](https://img.shields.io/badge/latest_version-4.2.0-green.svg)](https://github.com/nishiki/manage-password/releases)
|
||||
[![Version](https://img.shields.io/badge/latest_version-4.2.1-green.svg)](https://github.com/nishiki/manage-password/releases)
|
||||
[![Build Status](https://travis-ci.org/nishiki/manage-password.svg?branch=master)](https://travis-ci.org/nishiki/manage-password)
|
||||
[![License](https://img.shields.io/badge/license-GPL--2.0-blue.svg)](https://github.com/nishiki/manage-password/blob/master/LICENSE)
|
||||
|
||||
|
|
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
|||
4.2.0
|
||||
4.2.1
|
||||
|
|
|
@ -272,7 +272,7 @@ module MPW
|
|||
# @param id [String] the item id
|
||||
# @return [String] an otp code
|
||||
def get_otp_code(id)
|
||||
@otp_keys.key?(id) ? 0 : ROTP::TOTP.new(decrypt(@otp_keys[id])).now
|
||||
@otp_keys.key?(id) ? ROTP::TOTP.new(decrypt(@otp_keys[id])).now : 0
|
||||
end
|
||||
|
||||
# Get remaining time before expire otp code
|
||||
|
|
Loading…
Reference in a new issue