Fix gallery HTML structure bug and replace email auth with OTP flow

Gallery: remove <a> from share allowlist. Gallery cards wrap content in
<a class="gal-link">; allowing <a> in sanitized answer HTML causes nested
anchors that the HTML5 adoption agency algorithm resolves by restructuring
the DOM, producing mismatched </div> tags that leave gallery-grid open and
pull sibling elements into the grid as spurious grid columns.

Account: replace email+password sign-up/sign-in with magic-link OTP.
supabase.auth.signInWithOtp handles both new and existing users in one
flow. Existing onAuthStateChange listener (dadeb8ddb9a8.js) retained for
post-redirect dashboard display. sendMagicLink added to extract-js
RESERVED_GLOBALS so the obfuscator does not mangle the onclick reference.
This commit is contained in:
Will Anderson
2026-05-04 10:04:22 -05:00
parent 0e51225564
commit 246a5f0967
5 changed files with 27 additions and 17 deletions
+1
View File
@@ -76,6 +76,7 @@ RESERVED_GLOBALS = [
"signInWith",
"signInWithEmail",
"signUpWithEmail",
"sendMagicLink",
"signOut",
"resetPassword",
"sendResetEmail",