Skip to content

Instantly share code, notes, and snippets.

@dklawren
Created June 20, 2017 20:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dklawren/2e4830cc2070b26a1f42768e99e621f2 to your computer and use it in GitHub Desktop.
Save dklawren/2e4830cc2070b26a1f42768e99e621f2 to your computer and use it in GitHub Desktop.
login form changes
diff --git a/auth/PhabricatorBMOAuth.css b/auth/PhabricatorBMOAuth.css
index cff2436..1ac99f8 100644
--- a/auth/PhabricatorBMOAuth.css
+++ b/auth/PhabricatorBMOAuth.css
@@ -3,8 +3,8 @@
*/
/* Hide the admin login */
- form[action=/auth/login/password:self/] { display: none; }
- form[action=/auth/login/password:self/].bmo-show { display: block; }
+ form[action="/auth/login/password:self/"] { display: none; }
+ form[action="/auth/login/password:self/"].bmo-show { display: block; }
/* Center the BMO login button */
- form[data-sigil=bmo-login] button { display: block; margin: 20px auto; }
+ form[data-sigil="bmo-login"] button { display: block; margin: 20px auto; }
diff --git a/auth/PhabricatorBMOAuth.js b/auth/PhabricatorBMOAuth.js
index 356a755..5fb1030 100644
--- a/auth/PhabricatorBMOAuth.js
+++ b/auth/PhabricatorBMOAuth.js
@@ -4,7 +4,7 @@
// Display the admin login form if "?admin"
if((new URLSearchParams(window.location.search)).has('admin')) {
- var adminForm = document.querySelector('form[action=/auth/login/password:self/]');
+ var adminForm = document.querySelector('form[action="/auth/login/password:self/"]');
if(adminForm) {
adminForm.classList.add('bmo-show');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment