Skip to content

Commit

Permalink
use ppolicy.css from ltb-common (#968)
Browse files Browse the repository at this point in the history
  • Loading branch information
David Coutadeur committed Sep 10, 2024
1 parent 6351812 commit dc22aa4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 36 deletions.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
"rm -rf htdocs/vendor/font-awesome/js htdocs/vendor/font-awesome/js-packages htdocs/vendor/font-awesome/less htdocs/vendor/font-awesome/metadata htdocs/vendor/font-awesome/otfs htdocs/vendor/font-awesome/scss htdocs/vendor/font-awesome/sprites htdocs/vendor/font-awesome/svgs",
"rm -rf vendor/fortawesome/font-awesome",
"cp -f vendor/ltb-project/ltb-common/src/ppolicy/html/policy.tpl templates/policy.tpl",
"cp -f vendor/ltb-project/ltb-common/src/ppolicy/js/ppolicy.js htdocs/js/ppolicy.js"
"cp -f vendor/ltb-project/ltb-common/src/ppolicy/js/ppolicy.js htdocs/js/ppolicy.js",
"cp -f vendor/ltb-project/ltb-common/src/ppolicy/css/ppolicy.css htdocs/css/ppolicy.css"
]
},
"require-dev": {
Expand Down
35 changes: 0 additions & 35 deletions htdocs/css/self-service-password.css
Original file line number Diff line number Diff line change
Expand Up @@ -65,38 +65,3 @@ textarea#sshkey {
}

}

/* password entropy customization*/
#entropybar>div {
width: 0%;
/* Adjust with JavaScript */
}

#entropybar>div.levelErr {
width: 0%;
}

#entropybar>div.level0 {
width: 20%;
}

#entropybar>div.level1 {
width: 40%;
}

#entropybar>div.level2 {
width: 60%;
}

#entropybar>div.level3 {
width: 80%;
}

#entropybar>div.level4 {
width: 100%;
}

.entropyHidden {
display: none;
}

1 change: 1 addition & 0 deletions templates/header.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<!-- include v4-shims.min.css for compatibility with older icon names, typically: fa-check-square-o -->
<link rel="stylesheet" type="text/css" href="vendor/font-awesome/css/v4-shims.min.css" />
<link rel="stylesheet" type="text/css" href="css/self-service-password.css" />
<link rel="stylesheet" type="text/css" href="css/ppolicy.css" />
{if $custom_css}
<link rel="stylesheet" type="text/css" href="{$custom_css}" />
{/if}
Expand Down

0 comments on commit dc22aa4

Please sign in to comment.