forked from OpenNebula/one
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
F OpenNebula#2497: two factor authentication
Signed-off-by: Jorge Lobo <jlobo@opennebula.systems>
- Loading branch information
Jorge Lobo
committed
Jul 1, 2019
1 parent
e9c5290
commit a59c9cb
Showing
9 changed files
with
151 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
body#login{ | ||
|
||
#wrapper{ | ||
margin-left: auto; | ||
margin-right: auto; | ||
width: 900px; | ||
text-align: center; | ||
|
||
div#logo_sunstone { | ||
height: 200px; | ||
width: 100%; | ||
display: inline-block; | ||
} | ||
|
||
div#login { | ||
background-color: #F5F5F5; | ||
border-radius: 1rem; | ||
padding: 2rem; | ||
-webkit-box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.75); | ||
-moz-box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.75); | ||
box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.75); | ||
|
||
.buttons{ | ||
display: inline-flex; | ||
width: 100%; | ||
margin: 0; | ||
align-items: center; | ||
margin-top: 1rem; | ||
|
||
button{ | ||
-webkit-box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.75); | ||
-moz-box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.75); | ||
box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.75); | ||
padding: .5rem 1rem; | ||
border: 1px solid rgba(0, 0, 0, 0.2); | ||
background-color: #F6F6F6; | ||
|
||
&:after{ | ||
content: "Login"; | ||
font-weight: bold; | ||
} | ||
} | ||
} | ||
|
||
.box { | ||
background: #FFFFFF; | ||
border-radius: 0.5rem; | ||
border: 1px solid grey; | ||
} | ||
} | ||
|
||
#login_spinner { | ||
display: inline-block; | ||
padding-right: 10px; | ||
} | ||
} | ||
|
||
#footer { | ||
padding: 9px 10px 10px 10px; | ||
text-align: center; | ||
width: 100%; | ||
position: fixed; | ||
margin: 0px; | ||
bottom: 0; | ||
|
||
a { | ||
color: #2ba6cb; | ||
text-decoration: none; | ||
line-height: inherit; | ||
font-size: 13px; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,6 +38,7 @@ | |
@import './tooltips'; | ||
@import './visjs'; | ||
@import './flot'; | ||
@import './login'; | ||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,24 @@ | ||
<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 /> | ||
<div class="border columns small-6 small-centered small-offset-3 text-center" id="login"> | ||
<div class="content"> | ||
<label class="text-left"> | ||
Username | ||
<input type="text" size="15" name="username" id="username" class="box"/> | ||
</label> | ||
<label class="text-left"> | ||
Password | ||
<input type="password" size="15" name="password" id="password" class="box"/> | ||
</label> | ||
<div class="row buttons small-collapse"> | ||
<div class="columns small-6 text-left"> | ||
<% 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="" /> | ||
</div> | ||
<div class="columns small-6 text-right"> | ||
<img src="images/ajax-loader.gif" alt="retrieving" id="login_spinner" /> | ||
<button type="submit" id="login_btn"></button> | ||
</div> | ||
</div> | ||
</div> | ||
</form> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,14 @@ | ||
<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="" /> | ||
<div class="border columns small-6 small-centered small-offset-3 text-center" id="login" style='height:169px;background:url("../images/panel_short.png") no-repeat scroll center transparent'> | ||
<div class="content"> | ||
<div class="row buttons small-collapse"> | ||
<div class="columns small-6 text-left"> | ||
<% 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 class="columns small-6 text-right"> | ||
<button type="submit" id="login_btn"></button> | ||
</div> | ||
</div> | ||
</form> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters