From 36202d8defb26f87264914f60c39c768cff3729e Mon Sep 17 00:00:00 2001 From: yo momma Date: Tue, 3 Feb 2026 22:01:05 +0000 Subject: Hump.fm: remove dump.fm branding --- static/js/register.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'static/js/register.js') 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); -- cgit v1.2.3-70-g09d2