Added hint message inciting to check accounts settings on fresh install

When unrestricted access from localhost is set and the accounts config
page has not been visited at all.
This commit is contained in:
luccioman 2018-04-02 19:48:11 +02:00
parent 2fd4d05e2f
commit 211f3d04ab
4 changed files with 18 additions and 0 deletions

View File

@ -82,6 +82,12 @@
<!-- warnings -->
#(warningUnrestrictedLocalAccess)#::
<dt class="hintIcon"><img src="env/grafics/bad.png" width="32" height="32" alt="bad"/></dt>
<dd class="hint">Access is unrestricted from localhost (this includes administration features).
Please check the <a href="ConfigAccounts_p.html">accounts configuration</a> page to ensure that the settings match the security level you need.</dd>
#(/warningUnrestrictedLocalAccess)#
#(warningGoOnline)#::
<dt class="hintIcon"><img src="env/grafics/bad.png" width="32" height="32" alt="bad"/></dt>
<dd class="hint">The peer must go online to get a peer address.

View File

@ -140,6 +140,10 @@ public class Status
if ( sb.getConfigBool(SwitchboardConstants.ADMIN_ACCOUNT_FOR_LOCALHOST, false) ) {
prop.put("unrestrictedLocalAccess", 1);
if(sb.getConfig(SwitchboardConstants.SERVER_SERVLETS_CALLED, "").indexOf("ConfigAccounts_p.html", 0) < 0) {
/* Encourage checking accounts config page to be sure that unrestricted local access is desired */
prop.put("warningUnrestrictedLocalAccess", true);
}
}
// resource observer status

View File

@ -2135,6 +2135,8 @@ Please open the <a href="ConfigAccounts_p.html">accounts configuration</a> page
and set an administration password.==et d&eacute;finir un mot de passe administrateur.
You have not published your peer seed yet. This happens automatically, just wait.==Votre noeud n'est pas encore connu du r&eacute;seau. Attendez quelques instants, cela se d&eacute;roule automatiquement.
Your network configuration is in private mode. Your peer seed will not be published.== La configuration de votre r&eacute;seau est en mode priv&eacute;. Votre noeud restera inconnu du r&eacute;seau.
Access is unrestricted from localhost (this includes administration features).==Aucune restriction d'accès (cela inclut les fonctions d'administration) n'est définie pour les connexions depuis un navigateur local (localhost).
Please check the <a href="ConfigAccounts_p.html">accounts configuration</a> page to ensure that the settings match the security level you need.==Veuillez vérifier la page de configuration des <a href="ConfigAccounts_p.html">comptes</a> pour vous assurer que les réglages satisfont le niveau de sécurité souhaité.
The peer must go online to get a peer address.==Le noeud doit aller en ligne afin de recevoir une adresse.
You cannot be reached from outside.==Votre noeud ne peut pas &ecirc;tre atteint depuis l'ext&eacute;rieur.
A possible reason is that you are behind a firewall, NAT or Router.==Il est possible que vous soyez derri&egrave;re un pare-feu, un NAT ou un routeur.

View File

@ -8221,6 +8221,12 @@
<trans-unit id="e24b0b3d" xml:space="preserve" approved="no" translate="yes">
<source>and set an administration password.</source>
</trans-unit>
<trans-unit id="f6c053fa" xml:space="preserve" approved="no" translate="yes">
<source>Access is unrestricted from localhost (this includes administration features).</source>
</trans-unit>
<trans-unit id="ad48a7e2" xml:space="preserve" approved="no" translate="yes">
<source>Please check the &lt;a href="ConfigAccounts_p.html"&gt;accounts configuration&lt;/a&gt; page to ensure that the settings match the security level you need.</source>
</trans-unit>
<trans-unit id="7623b0bd" xml:space="preserve" approved="no" translate="yes">
<source>You have not published your peer seed yet. This happens automatically, just wait.</source>
</trans-unit>