mirror of
https://github.com/nishiki/manage-password.git
synced 2025-03-20 21:34:35 +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!
|
||||
[](https://github.com/nishiki/manage-password/releases)
|
||||
[](https://github.com/nishiki/manage-password/releases)
|
||||
[](https://travis-ci.org/nishiki/manage-password)
|
||||
[](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…
Add table
Reference in a new issue