Differences

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

Link to this comparison view

Next revision
Previous revision
documentation:self-service-password:latest:config_general [2015/10/08 10:13]
127.0.0.1 external edit
documentation:self-service-password:latest:config_general [2018/07/09 10:31] (current)
Line 1: Line 1:
 ====== General parameters ====== ====== General parameters ======
  
-<​note>​Configuration ​file: ''​self-service-password/​conf/​config.inc.php''</​note>​+===== Configuration ​files =====
  
 +To configure Self Service Password, you need to create a //local// configuration file named ''​config.inc.local.php''​ in ''​self-service-password/​conf''​. For example :
 +<file php><?​php
 +// Override config.inc.php parameters below
 +
 +?></​file>​
 +
 +Self Service Password default configuration file is ''​self-service-password/​conf/​config.inc.php''​. It includes ''​config.inc.local.php''​. Consequently,​ you can override all parameters in ''​config.inc.local.php''​. This prevents you to be disturbed by an upgrade.
 ===== Language ===== ===== Language =====
  
Line 8: Line 15:
   * {{:​documentation:​self-service-password:​br.png|}} Brazilian (pt-BR)   * {{:​documentation:​self-service-password:​br.png|}} Brazilian (pt-BR)
   * {{:​documentation:​self-service-password:​catalonia.png|}} Catalonia (ca)   * {{:​documentation:​self-service-password:​catalonia.png|}} Catalonia (ca)
-  * {{:​documentation:​self-service-password:​cn.png|}} Chinese (cn)+  * {{:​documentation:​self-service-password:​cn.png|}} Chinese (cn and zh-CN) 
 +  * {{:​documentation:​self-service-password:​cz.png|}} Czech (cs)
   * {{:​documentation:​self-service-password:​nl.png|}} Dutch (nl)   * {{:​documentation:​self-service-password:​nl.png|}} Dutch (nl)
   * {{:​documentation:​self-service-password:​us.png|}} English (en)   * {{:​documentation:​self-service-password:​us.png|}} English (en)
 +  * {{:​documentation:​self-service-password:​ee.png|}} Estonian (ee)
   * {{:​documentation:​self-service-password:​fr.png|}} French (fr)   * {{:​documentation:​self-service-password:​fr.png|}} French (fr)
   * {{:​documentation:​self-service-password:​de.png|}} German (de)   * {{:​documentation:​self-service-password:​de.png|}} German (de)
 +  * {{:​documentation:​self-service-password:​gr.png|}} Greek (el)
 +  * {{:​documentation:​self-service-password:​hu.png|}} Hungarian (hu)
   * {{:​documentation:​self-service-password:​it.png|}} Italian (it)   * {{:​documentation:​self-service-password:​it.png|}} Italian (it)
 +  * {{:​documentation:​self-service-password:​jp.png|}} Japanese (ja)
   * {{:​documentation:​self-service-password:​pl.png|}} Polish (pl)   * {{:​documentation:​self-service-password:​pl.png|}} Polish (pl)
   * {{:​documentation:​self-service-password:​pt.png|}} Portuguese (pt-PT)   * {{:​documentation:​self-service-password:​pt.png|}} Portuguese (pt-PT)
 +  * {{:​documentation:​self-service-password:​ru.png|}} Russian (ru)
   * {{:​documentation:​self-service-password:​sk.png|}} Slovak (sk)   * {{:​documentation:​self-service-password:​sk.png|}} Slovak (sk)
   * {{:​documentation:​self-service-password:​sl.png|}} Slovenian (sl)   * {{:​documentation:​self-service-password:​sl.png|}} Slovenian (sl)
   * {{:​documentation:​self-service-password:​es.png|}} Spanish (es)   * {{:​documentation:​self-service-password:​es.png|}} Spanish (es)
-  * {{:​documentation:​self-service-password:​ru.png|}} ​Russian ​(ru)+  * {{:​documentation:​self-service-password:​se.png|}} ​Swedish ​(sv) 
 +  * {{:​documentation:​self-service-password:​tr.png|}} Turkish (tr) 
 +  * {{:​documentation:​self-service-password:​ua.png|}} Ukranian (uk)
  
 Set one of them in ''​$lang'':​ Set one of them in ''​$lang'':​
Line 25: Line 40:
 $lang = "​en";​ $lang = "​en";​
 </​file>​ </​file>​
 +
 +===== Menu =====
 +
 +To display a top menu, activate the option:
 +<file php>
 +$show_menu = true;
 +</​file>​
 +
 +If menu is not shown, the default application title will be displayed.
  
 ===== Messages ===== ===== Messages =====
Line 44: Line 68:
  
 <file php> <file php>
-$logo = "style/​ltb-logo.png";​+$logo = "images/​ltb-logo.png";​
 </​file>​ </​file>​
  
 +<note tip>​Comment this parameter to hide logo</​note>​
 +===== Background =====
 +
 +You change the background image with your own. Set the path to image in ''​$background_image'':​
 +
 +<file php>
 +$background_image = "​images/​unsplash-space.jpeg";​
 +</​file>​
 +
 +<​note>​Comment this parameter to falll back to default background color</​note>​
 ===== Debug ===== ===== Debug =====
  
Line 68: Line 102:
  
 <​note>​If no characters are configured in ''​$login_forbidden_chars'',​ only alphanumeric characters are allowed.</​note>​ <​note>​If no characters are configured in ''​$login_forbidden_chars'',​ only alphanumeric characters are allowed.</​note>​
 +
 +You can configure "​obscure"​ messages, so that some errors are not displayed and replaced by a generic "bad credentials"​ error:
 +<file php>
 +$obscure_failure_messages = array("​mailnomatch"​);​
 +</​file>​
  
 ===== Default action ===== ===== Default action =====
Line 81: Line 120:
   * ''​sendsms''​   * ''​sendsms''​
  
 +You can disable the standard password change if you don't need it:
 +<file php>
 +$use_change = false;
 +</​file>​
 +
 +In this case, be sure to also remove "​change"​ from default action, else the change page will still be displayed.