diff options
Diffstat (limited to 'template/reset.st')
| -rwxr-xr-x | template/reset.st | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/template/reset.st b/template/reset.st index a388122..6aace41 100755 --- a/template/reset.st +++ b/template/reset.st @@ -21,7 +21,8 @@ return false; } var nick = '$nick$'; - var hash = hex_sha1(nick + '\$' + p1 + '\$dumpfm'); + var salt = (typeof window.AuthSalt === 'string' && window.AuthSalt) ? window.AuthSalt : 'humpfm'; + var hash = hex_sha1(nick + '\$' + p1 + '\$' + salt); jQuery('#hash').val(hash); return true; }); |
