Setup password is generated in 'old' format
pixil98 opened this issue · comments
I just deployed this over the weekend and I get the following message when I navigate to the postfixadmin setup page. It won't let me login until it's dealt with.
Your setup_password is in an obsolete format. As of PostfixAdmin 3.3 it needs regenerating.
It looks like line 65 of config.local.php should be the following. I've tested it in my deployment and it fixes the problem.
$CONF['setup_password'] = password_hash(($_ENV['PFA_SETUP_PASS'] ? $_ENV['PFA_SETUP_PASS'] : $_ENV['PFA_DB_PASS']), PASSWORD_DEFAULT);
Thanks,
i haven't tested the fresh setup, that's why it might not have been occurred in my setup. I will test and fix.
I think this one can be closed?