File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -594,6 +594,16 @@ sub module_install
594594 &write_file(" $config_directory /config" , \%gconfig );
595595 &unlock_file(" $config_directory /config" );
596596 }
597+ if ($gconfig {' forgot_pass' } && &foreign_check(" virtualmin-password-recovery" )) {
598+ # Make sure the old password recovery module is disabled
599+ my %clang ;
600+ &read_file(" $config_directory /custom-lang" , \%clang );
601+ $clang {' session_postfix' } = ' ' ;
602+ &write_file(" $config_directory /custom-lang" , \%clang );
603+ &foreign_require(" acl" );
604+ &acl::remove_anonymous_access(" /virtualmin-password-recovery" ,
605+ " virtualmin-password-recovery" );
606+ }
597607
598608# Add custom branding for login page
599609my $brand_info = " $config_directory /brand.info" ;
You can’t perform that action at this time.
0 commit comments