Created
June 20, 2017 20:25
-
-
Save dklawren/2e4830cc2070b26a1f42768e99e621f2 to your computer and use it in GitHub Desktop.
login form changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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