]> gitweb.michael.orlitzky.com - charm-bypass.git/commitdiff
index.html.in: uppercase the security code automatically
authorMichael Orlitzky <michael@orlitzky.com>
Thu, 2 Nov 2023 04:22:06 +0000 (00:22 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Thu, 2 Nov 2023 04:22:06 +0000 (00:22 -0400)
There's no reason to do this, except the only reason to do this:
people are dumb and this will help their dumb asses when we make
it possible to change the code via the menu.

index.html.in

index c805cf5f020ff5d41928ad8f5520936811e966c5..25f477501f0f53117a459eeb5672d0161350453e 100644 (file)
         /* Get the "code" from the querystring if it's there */
         const params = new URLSearchParams(document.location.search);
         if (params.get("code")) {
-          ct.textContent = params.get("code");
+          ct.textContent = params.get("code").toUpperCase();
         }
         else {
           /* Otherwise, use a random code */