VM Password Complexity through the Phone (#2773)
* Update index.lua Store password complexity settings as variables. * Update macro.lua Add macros for "password is below minimum length" and "password is not secure" * Update change_password.lua Adds the ability to check for password complexity and minimum length. Also, fixes a bug where the password was changed if the caller hung up in the middle of changing their password.
This commit is contained in:
@@ -183,6 +183,20 @@
|
||||
remote_access = settings['voicemail']['remote_access']['boolean'];
|
||||
end
|
||||
end
|
||||
|
||||
password_complexity = '';
|
||||
if (settings['voicemail']['password_complexity'] ~= nil) then
|
||||
if (settings['voicemail']['password_complexity']['boolean'] ~= nil) then
|
||||
password_complexity = settings['voicemail']['password_complexity']['boolean'];
|
||||
end
|
||||
end
|
||||
|
||||
password_min_length = '';
|
||||
if (settings['voicemail']['password_min_length'] ~= nil) then
|
||||
if (settings['voicemail']['password_min_length']['numeric'] ~= nil) then
|
||||
password_min_length = settings['voicemail']['password_min_length']['numeric'];
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
if settings['voicemail'] then
|
||||
|
||||
Reference in New Issue
Block a user