Allows special characters in passwords (implements #388 and #232)

Special charaters are allowed in passwords, namely,
$!/()=?^*@_
This commit is contained in:
Simone Mainardi 2016-02-11 19:23:55 +01:00
parent f155d62d1d
commit 3d2df7e64e
4 changed files with 14 additions and 8 deletions

View file

@ -77,7 +77,8 @@ print [[
</form>
<script>
function isValid(str) { return /^\w+$/.test(str); }
function isValid(str) { /* return /^[\w%]+$/.test(str); */ return true; }
function isValidPassword(str) { return /^[\w\$\\!\/\(\)\=\?\^\*@_]{1,}$/.test(str); }
var frmadduser = $('#form_add_user');