diff options
| author | yo momma <shutup@oops.wtf> | 2026-02-03 22:01:05 +0000 |
|---|---|---|
| committer | yo momma <shutup@oops.wtf> | 2026-02-03 22:01:05 +0000 |
| commit | 36202d8defb26f87264914f60c39c768cff3729e (patch) | |
| tree | a57224b8bba7fc7a7c65a8c3b0408847e9043a3d /static/js/register.js | |
| parent | d220d620e425ee6128c83229467e3ccac8f3ebf2 (diff) | |
Hump.fm: remove dump.fm branding
Diffstat (limited to 'static/js/register.js')
| -rwxr-xr-x | static/js/register.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/static/js/register.js b/static/js/register.js index f4039a8..310990b 100755 --- a/static/js/register.js +++ b/static/js/register.js @@ -4,6 +4,10 @@ function validateEmail(email) { return email.match(re); } +function getAuthSalt() { + return (typeof window.AuthSalt === 'string' && window.AuthSalt) ? window.AuthSalt : 'humpfm'; +} + function submitRegistration() { var nick = $('#regNickInput').val(); var email = $('#regEmailInput').val(); @@ -26,7 +30,7 @@ function submitRegistration() { return; } - var hash = hex_sha1(nick + '$' + password + '$dumpfm'); + var hash = hex_sha1(nick + '$' + password + '$' + getAuthSalt()); var onSuccess = function() { if (typeof pageTracker !== 'undefined') { pageTracker._trackEvent('User', 'Register', nick); |
