Add suggest_guest option to display login banner offering Guest acct
This commit is contained in:
@@ -7,6 +7,7 @@
|
|||||||
[ENHANCEMENTS]
|
[ENHANCEMENTS]
|
||||||
|
|
||||||
* Display "Auto" when there is no discovered duplex setting
|
* Display "Auto" when there is no discovered duplex setting
|
||||||
|
* Add suggest_guest option to display login banner offering Guest acct
|
||||||
|
|
||||||
2.012006 - 2013-08-23
|
2.012006 - 2013-08-23
|
||||||
|
|
||||||
|
|||||||
@@ -95,6 +95,13 @@ database:
|
|||||||
netdisco=> update users set port_control = true where username = 'guest';
|
netdisco=> update users set port_control = true where username = 'guest';
|
||||||
netdisco=> update users set admin = true where username = 'guest';
|
netdisco=> update users set admin = true where username = 'guest';
|
||||||
|
|
||||||
|
=head3 C<suggest_guest>
|
||||||
|
|
||||||
|
Value: Boolean. Default: C<false>.
|
||||||
|
|
||||||
|
Enable this to display a banner suggesting to log in with a guest account.
|
||||||
|
The username and password of this account must both be "guest".
|
||||||
|
|
||||||
=head3 C<trust_remote_user>
|
=head3 C<trust_remote_user>
|
||||||
|
|
||||||
Value: Boolean. Default: C<false>.
|
Value: Boolean. Default: C<false>.
|
||||||
|
|||||||
@@ -26,6 +26,12 @@
|
|||||||
<a href="http://sourceforge.net/p/netdisco/bugs/" target="_blank"><i class="icon-bug"></i> Report a Bug?</a>
|
<a href="http://sourceforge.net/p/netdisco/bugs/" target="_blank"><i class="icon-bug"></i> Report a Bug?</a>
|
||||||
</div>
|
</div>
|
||||||
[% END %]
|
[% END %]
|
||||||
|
[% IF settings.suggest_guest AND NOT session.logged_in_user %]
|
||||||
|
<div class="alert alert-info fade in">
|
||||||
|
<a class="close" data-dismiss="alert">×</a>
|
||||||
|
Guest access is available by entering username "guest" and password "guest".
|
||||||
|
</div>
|
||||||
|
[% END %]
|
||||||
<div class="hero-unit">
|
<div class="hero-unit">
|
||||||
<h2>Welcome to Netdisco</h2>
|
<h2>Welcome to Netdisco</h2>
|
||||||
<small>Netdisco is an Open Source web-based network management tool.</small>
|
<small>Netdisco is an Open Source web-based network management tool.</small>
|
||||||
|
|||||||
Reference in New Issue
Block a user