aboutsummaryrefslogtreecommitdiff
path: root/app/views/auth/formLogin.phtml
diff options
context:
space:
mode:
authorGravatar rupak <nnew234567@gmail.com> 2026-01-24 20:16:43 +0545
committerGravatar GitHub <noreply@github.com> 2026-01-24 15:31:43 +0100
commit85f14f92fdb5c375f0ae4100f50a529a62b480ec (patch)
treece31496afc85b2b8f44eda7db288da68161eb261 /app/views/auth/formLogin.phtml
parentcb3ea904904b5b170313f285bee884be3df2ff91 (diff)
Message for closed registration (#8462)
* Add closed msg field i18n fix * Display based on registration type * Save as FreshRSS_Context::systemConf()->closed_registration_message instead * Improve messages * Revert unrelated changes * make fix-all * Minor whitespace * Simplify logic * Fix invalid use of empty() and sympler syntax --------- Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
Diffstat (limited to 'app/views/auth/formLogin.phtml')
-rw-r--r--app/views/auth/formLogin.phtml17
1 files changed, 12 insertions, 5 deletions
diff --git a/app/views/auth/formLogin.phtml b/app/views/auth/formLogin.phtml
index 658adc912..91a3d05a3 100644
--- a/app/views/auth/formLogin.phtml
+++ b/app/views/auth/formLogin.phtml
@@ -5,11 +5,18 @@
<main class="prompt">
<h1><?= _t('gen.auth.login') ?></h1>
- <?php if (!FreshRSS_user_Controller::max_registrations_reached()) { ?>
- <div class="link-registration">
- <a href="<?= _url('auth', 'register') ?>"><?= _t('gen.auth.registration.ask') ?></a>
- </div>
- <?php } ?>
+ <?php if ((FreshRSS_Context::systemConf()->limits['max_registrations'] ?? 1) !== 1): ?>
+ <?php if (FreshRSS_user_Controller::max_registrations_reached()): ?>
+ <div><?=
+ FreshRSS_Context::systemConf()->attributeString('closed_registration_message') ?:
+ _t('admin.system.default_closed_registration_message')
+ ?></div>
+ <?php else: ?>
+ <div class="link-registration">
+ <a href="<?= _url('auth', 'register') ?>"><?= _t('gen.auth.registration.ask') ?></a>
+ </div>
+ <?php endif; ?>
+ <?php endif; ?>
<form class="crypto-form" method="post" action="<?= _url('auth', 'login') ?>">
<input type="hidden" name="_csrf" value="<?= FreshRSS_Auth::csrfToken() ?>" />