mirror of
https://github.com/nishiki/manage-password.git
synced 2025-02-20 01:50:04 +00:00
fix bug when otp is empty
This commit is contained in:
parent
e8b572ae2e
commit
2dcff8d9ef
1 changed files with 1 additions and 1 deletions
|
@ -387,7 +387,7 @@ class Cli
|
|||
|
||||
item.update(options)
|
||||
@mpw.set_password(item.id, password) if not password.empty?
|
||||
@mpw.set_otp_key(item.id, otp_key) if not otp_key.empty?
|
||||
@mpw.set_otp_key(item.id, otp_key) if not otp_key.to_s.empty?
|
||||
@mpw.write_data
|
||||
@mpw.sync(true) if @sync
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue