change time password outdated

This commit is contained in:
Alexander Popov 2022-04-09 22:06:40 +03:00
parent 70153a6e42
commit bc7ebefe61
Signed by: iiiypuk
GPG Key ID: 3F76816AEE08F908
3 changed files with 6 additions and 3 deletions

View File

@ -6,6 +6,9 @@
- - Information
- ♻️ - Edited
## 0.2.3 - [09/04/2022]
- ♻️ - Password outdated date change to 3 month
## 0.2.2 - [08/04/2022]
- - Added check permissions for password file
- - Added title by start program

View File

@ -1,2 +1,2 @@
require "spec"
require "../src/passw0rd_manager"
require "../src/pmng"

View File

@ -136,7 +136,7 @@ while loop
current_time = Time.local.to_unix
a = [] of String
passwords_array.each do |item|
if item.update + (2629743 * 2) < current_time # 2629743 * 2 -- 2 month
if item.update + (2629743 * 3) < current_time # 2629743 * 3 -- 3 month
outdated_count += 1
a << item.url
end
@ -158,7 +158,7 @@ while loop
end
if !item.login.blank?
# print "🏷️ " # Bug
# print "\u{1F3F7}\u{FE0F} "
print "🗿 "
puts item.login.colorize(:yellow)
end