1
0
Fork 0
mirror of https://github.com/nishiki/manage-password.git synced 2025-02-20 01:50:04 +00:00

add function get_last_sync

This commit is contained in:
nishiki 2016-05-12 16:48:57 +02:00
parent 0a56019794
commit b85d5109a1

View file

@ -285,6 +285,13 @@ class MPW
raise "#{I18n.t('error.import.read', file: file)}\n#{e}"
end
# Get last sync
def get_last_sync
return @config['sync']['last_sync'].to_i
rescue
return 0
end
# Generate a random password
# @args: length -> the length password
# @rtrn: a random string