summaryrefslogtreecommitdiff
path: root/static/js/home.js
diff options
context:
space:
mode:
authoryo momma <shutup@oops.wtf>2026-01-27 03:33:16 +0000
committeryo momma <shutup@oops.wtf>2026-01-27 03:33:16 +0000
commitfc9a4ea22eb91757b95cbe1bf1708be17fc2337a (patch)
tree76a0122149e3288ee21d7fb6d0410b1b7b8970a4 /static/js/home.js
parent25b74138d68ade87689e714f10e1f3116da5bbee (diff)
Fix HTTPS/mixed content; make config env-drivenHEADmaster2026
- Replace hardcoded dump.fm URLs with host/scheme config\n- Add optional passwordless login flow\n- Update templates/static assets to avoid blocked HTTP resources\n- Ignore local uploads/SQL dumps
Diffstat (limited to 'static/js/home.js')
-rwxr-xr-xstatic/js/home.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/static/js/home.js b/static/js/home.js
index 9bee6ba..37666ae 100755
--- a/static/js/home.js
+++ b/static/js/home.js
@@ -145,9 +145,9 @@ function initBigHand(id){
function login() {
var nick = $('#nickInput').val();
- var password = $('#passwordInput').val();
+ var password = $('#passwordInput').val() || '';
var rememberme = $('#remembermeInput').attr('checked') ? 'yes' : '';
- var hash = hex_sha1(nick + '$' + password + '$dumpfm');
+ var hash = password ? hex_sha1(nick + '$' + password + '$dumpfm') : '';
var onSuccess = function(json) {
location.href = '/chat';
@@ -530,4 +530,3 @@ function bit_rol(num, cnt)
{
return (num << cnt) | (num >>> (32 - cnt));
}
-