I am trying to overwrite the form.php file for the 'concrete' authentification type. I can make it work if I place the form.php file in the /application/authentication/concrete directory, but not from within my theme package directory.
<?php foreach ($activeAuths as $auth): ?>
<div data-handle="<?= $auth->getAuthenticationTypeHandle(); ?>" class="authentication-type authentication-type-<?= $auth->getAuthenticationTypeHandle(); ?>">
<?php $auth->renderForm($authTypeElement ?: 'form', $authTypeParams ?: array()); ?>
</div>
<?php endforeach; ?>
If I try to load another form (by replacing the second parameter in the renderForm method) nothing happens.
Any ideas how to make c5 aware of the override?
You can't. I have developed a package that needed to do that and it can't be overridden from a package. You have to do it from the application directory.
My package has an "install" option that copies the modified form from the package's directory to the application one.