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

fix max length to 32768 for a password

This commit is contained in:
nishiki 2016-07-10 19:25:21 +02:00
parent f68882181d
commit 8a1003f1bd

View file

@ -417,6 +417,8 @@ class MPW
def self.password(options={})
if not options.include?(:length) or options[:length].to_i <= 0
length = 8
elsif options[:length].to_i >= 32768
length = 32768
else
length = options[:length].to_i
end