Just installed leantime today. 2FA activation redirects to an error page. On Github there is a message of this error missing php7.4-imagick. https://github.com/Leantime/leantime/issues/356
I was able to reproduce this. The matching upstream issue is at https://github.com/Leantime/leantime/issues/1601 but there was no solution posted so far.