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/registerdis.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'static/js/registerdis.js') diff --git a/static/js/registerdis.js b/static/js/registerdis.js index d4a662b..76fd261 100755 --- a/static/js/registerdis.js +++ b/static/js/registerdis.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 = $('#nickInput').val(); var email = $('#emailInput').val(); @@ -26,12 +30,12 @@ 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); } - location.href = "http://dis.dump.fm"; + location.href = "https://dis.hump.fm"; }; var onError = function(resp) { -- cgit v1.2.3-70-g09d2