1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-01-12 09:17:41 +03:00

F #2146: Configurable 'Keep me logged in' option in Sunstone (#2151)

This commit is contained in:
Abel Coronado 2018-06-05 15:58:44 +02:00 committed by Ruben S. Montero
parent 6290b85d8b
commit f55f83ef59
3 changed files with 38 additions and 34 deletions

View File

@ -125,6 +125,9 @@
# Login Session Length in seconds, defaults to 1 hour.
#:session_expire_time: 3600
# True to display 'Keep me logged in' option.
:keep_me_logged: true
# Default language setting
:lang: en_US

View File

@ -4,24 +4,24 @@
background-size: 355px;">
</div>
<form id="login_form" method="post">
<div class="border" id="login">
<div class="content">
Username
<input type="text" size="15" name="username" id="username" class="box"/>
Password
<input type="password" size="15" name="password" id="password" class="box"/>
<br />
<input type="checkbox" id="check_remember" />
<label id="label_remember" for="check_remember">Keep me logged in</label>
<input type="submit" id="login_btn" value="" />
<img src="images/ajax-loader.gif" alt="retrieving" id="login_spinner" />
</div>
<div id="error_box" class="hidden alert-box alert" style="display: none">
<span id="error_message"></span>
</div>
</div>
</form>
<form id="login_form" method="post">
<div class="border" id="login">
<div class="content">
Username
<input type="text" size="15" name="username" id="username" class="box"/>
Password
<input type="password" size="15" name="password" id="password" class="box"/>
<br />
<% if $conf[:keep_me_logged] %>
<input type="checkbox" id="check_remember" />
<label id="label_remember" for="check_remember">Keep me logged in</label>
<% end %>
<input type="submit" id="login_btn" value="" />
<img src="images/ajax-loader.gif" alt="retrieving" id="login_spinner" />
</div>
<div id="error_box" class="hidden alert-box alert" style="display: none">
<span id="error_message"></span>
</div>
</div>
</form>
</div>

View File

@ -4,18 +4,19 @@
background-size: 355px;">
</div>
<form id="login_form" method="post">
<div class="border" id="login" style='height:169px;background:url("../images/panel_short.png") no-repeat scroll center transparent'>
<div class="content">
<input style="float:left;" type="submit" id="login_btn" value="" />
<input type="checkbox" id="check_remember" />
<label id="label_remember" for="check_remember">Keep me logged in</label>
</div>
<div id="error_box" class="hidden alert-box alert" style="display: none">
<span id="auth_error"></span>
<span id="one_error"></span>
</div>
</div>
</form>
<form id="login_form" method="post">
<div class="border" id="login" style='height:169px;background:url("../images/panel_short.png") no-repeat scroll center transparent'>
<div class="content">
<input style="float:left;" type="submit" id="login_btn" value="" />
<% if $conf[:keep_me_logged] %>
<input type="checkbox" id="check_remember" />
<label id="label_remember" for="check_remember">Keep me logged in</label>
<% end %>
</div>
<div id="error_box" class="hidden alert-box alert" style="display: none">
<span id="auth_error"></span>
<span id="one_error"></span>
</div>
</div>
</form>
</div>