1
0
Fork 0
mirror of https://github.com/nishiki/manage-password.git synced 2024-10-27 02:33:19 +00:00

fix bug when otp is empty

This commit is contained in:
nishiki 2016-08-02 22:10:50 +02:00
parent e8b572ae2e
commit 2dcff8d9ef

View file

@ -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