more code fixes

This commit is contained in:
Dennis Eichhorn 2024-03-15 21:57:48 +00:00
parent 5065d38e2e
commit a5e544b8e2
2 changed files with 4 additions and 4 deletions

View File

@ -399,7 +399,7 @@ final class ApiController extends Controller
$mail->template,
[
'{reset_link}' => $resetLink,
'{user_name}' => $account->login,
'{user_name}' => (string) $account->login,
]
);
@ -534,7 +534,7 @@ final class ApiController extends Controller
$mail->template,
[
'{new_password}' => $pass,
'{user_name}' => $account->login,
'{user_name}' => (string) $account->login,
]
);
@ -1964,7 +1964,7 @@ final class ApiController extends Controller
'{confirmation_link}' => UriFactory::hasQuery('/' . \strtolower($app->name))
? UriFactory::build('{/' . \strtolower($app->name) . '}/' . \strtolower($app->name) . '/signup/confirmation?hash=' . $dataChange->getHash())
: UriFactory::build('{/tld}/{/lang}/' . \strtolower($app->name) . '/signup/confirmation?hash=' . $dataChange->getHash()),
'{user_name}' => $account->login,
'{user_name}' => (string) $account->login,
]
);

View File

@ -148,7 +148,7 @@ final class CliController extends Controller
$mapper = SettingMapper::yield()
->where('isEncrypted', true);
foreach ($mapper->execute() as $setting) {
foreach ($mapper->executeYield() as $setting) {
$decrypted = empty($data['old']) || empty($setting->content)
? $setting->content
: EncryptionHelper::decryptShared($setting->content ?? '', $data['old']);