iredmail-doc/html/iredadmin-pro.default.passw...

56 lines
3.0 KiB
HTML
Raw Normal View History

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>iRedAdmin-Pro: Default password restrictions</title>
<link rel="stylesheet" type="text/css" href="./css/markdown.css" />
</head>
<body>
<div id="navigation">
<a href="/index.html" target="_blank">
<img alt="iRedMail web site"
src="./images/logo-iredmail.png"
style="vertical-align: middle; height: 30px;"
/>&nbsp;
<span>iRedMail</span>
</a>
2016-02-29 02:15:19 -06:00
&nbsp;&nbsp;//&nbsp;&nbsp;<a href="./index.html">Document Index</a></div><h1 id="iredadmin-pro-default-password-restrictions">iRedAdmin-Pro: Default password restrictions</h1>
<div class="admonition attention">
<p class="admonition-title">Attention</p>
<p>Restarting Apache or uwsgi (if you're running Nginx) service is required
after updated iRedAdmin config file.</p>
</div>
<p>iRedAdmin-Pro has some default password restrictions, you can find default
settings in file <code>libs/default_settings.py</code> under iRedAdmin-Pro directory.
If you want to change them, please copy the parameters to iRedAdmin-Pro config
file <code>settings.py</code> then update their values. Restarting Apache or uwsgi (if
you're running Nginx) service is required after modified <code>settings.py</code>.</p>
<pre><code># default password restriction setting in file: libs/default_settings.py
# Special characters which can be used in password.
PASSWORD_SPECIAL_CHARACTERS = &quot;&quot;&quot;#$%&amp;'&quot;*+-,.:;!&lt;=&gt;?@[]/\(){}^_`~&quot;&quot;&quot;
# Must contain at least one letter, one uppercase letter, one number, one special character
PASSWORD_HAS_LETTER = True
PASSWORD_HAS_UPPERCASE = True
PASSWORD_HAS_NUMBER = True
PASSWORD_HAS_SPECIAL_CHAR = True
</code></pre>
<p>For example, if you don't want to enforce upper case in password, set below
parameter in iRedAdmin-Pro config file <code>settings.py</code>:</p>
<pre><code>PASSWORD_HAS_UPPERCASE = False
</code></pre><div class="footer">
<p style="text-align: center; color: grey;">All documents are available in <a href="https://bitbucket.org/zhb/iredmail-docs/src">BitBucket repository</a>, and published under <a href="http://creativecommons.org/licenses/by-nd/3.0/us/" target="_blank">Creative Commons</a> license. You can <a href="https://bitbucket.org/zhb/iredmail-docs/get/tip.tar.bz2">download the latest version</a> for offline reading. If you found something wrong, please do <a href="http://www.iredmail.org/contact.html">contact us</a> to fix it.</p>
</div>
<script type="text/javascript">
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-3293801-21', 'auto');
ga('send', 'pageview');
</script>
</body></html>