Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
documentation:latest:portalcustom [2019/07/03 14:22]
coudot [Skin background]
documentation:latest:portalcustom [2020/04/03 10:49] (current)
Line 29: Line 29:
 </​note>​ </​note>​
  
 +==== Custom CSS file ====
 +
 +You can define a custom CSS file, for example ''​custom.css'',​ which will be loaded after default CSS files. This file needs to be created in the static repository (''/​usr/​share/​lemonldap-ng/​portal/​htdocs/​static/​boostrap/​css''​).
 +
 +Then set this value in Custom CSS parameter : ''​bootstrap/​css/​custom.css''​.
 +
 +Sample CSS file, to remove white background of main logo:
 +<file css>
 +#header img {
 +  background-color:​ transparent;​
 +}
 +</​file>​
  
 ===== Skin ===== ===== Skin =====
Line 113: Line 125:
 Then you can add your media to ''​myskin/​images'',​ you will be able to use them in HTML template with this code: Then you can add your media to ''​myskin/​images'',​ you will be able to use them in HTML template with this code:
 <​code>​ <​code>​
-<img src="<​TMPL_VAR NAME="​STATIC_PREFIX">​myskin/​images/​logo.png"​ class="​img-responsive center-block"​ />+<img src="<​TMPL_VAR NAME="​STATIC_PREFIX">​myskin/​images/​logo.png"​ class="​mx-auto d-block"​ />
 </​code>​ </​code>​
  
 To change CSS, two options: To change CSS, two options:
-  * Edit myksin/css/skin.css and myskin/css/skin.min.css+  * Edit myksin/css/styles.css and myskin/css/styles.min.css
   * Create a new CSS file, for example myskin/​css/​myskin.css and load it in customhead.tpl:​   * Create a new CSS file, for example myskin/​css/​myskin.css and load it in customhead.tpl:​
 <​code>​ <​code>​
Line 212: Line 224:
    
 ===== Password management ===== ===== Password management =====
 +
 +==== General ====
  
   * **Require old password**: used only in the password changing module of the menu, will check the old password before updating it   * **Require old password**: used only in the password changing module of the menu, will check the old password before updating it
Line 217: Line 231:
   * **Send mail on password change**: send a mail if the password is changed from the Menu, or from forced password reset (LDAP password policy)   * **Send mail on password change**: send a mail if the password is changed from the Menu, or from forced password reset (LDAP password policy)
  
 +==== Password Policy ====
 +
 +<note tip>​Available since version 2.0.6</​note>​
 +
 +  * **Minimal size**: leave 0 to bypass the check
 +  * **Minimal lower characters**:​ leave 0 to bypass the check
 +  * **Minimal upper characters**:​ leave 0 to bypass the check
 +  * **Minimal digit characters**:​ leave 0 to bypass the check
 +  * **Minimal special characters**:​ leave 0 to bypass the check
 +  * **Allowed special characters**:​ set blanck to forbid special characters (''​_''​ is not a special character)
 +  * **Display policy in password form**: enable this to display an information message about password policy constraints
  
 ===== Other parameters ===== ===== Other parameters =====