Skip to content

Commit d199ccf

Browse files
Update docs to fix some typos (#26)
1 parent 53e9ff2 commit d199ccf

4 files changed

Lines changed: 20 additions & 23 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ to your [Azure Application Insights](https://azure.microsoft.com/en-us/services/
1212

1313
3. __[mfaLoadingWheel](mfaLoadingWheel)__ - JavaScript customization to add a loading wheel to the AD FS authentication options page.
1414

15-
4. __[communityCustomizations](communityCustomizations)__ - JavaScript customizations from community members and AD FS customers.
15+
4. __[communityCustomizations](communityCustomizations)__ - JavaScript customizations from community members.
1616

1717
## Contributing
1818

communityCustomizations/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ To add your customizations, please do the following:
1919

2020
## Customizations
2121

22-
None yet
22+
1. __[ShowPasswordButton](ShowPasswordButton)__ - A customization to allow users to click "show password" when entering their password on an AD FS page
2323

2424
## Contributing (Special Note)
2525

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
var inputArea = document.getElementById("inputArea");
2+
var showButton = document.getElementById("showButton");
23

3-
if(inputArea){
4-
console.log("hello");
5-
var showButton = document.createElement("div");
6-
showButton.id = "showButton";
7-
showButton.innerHTML = "Show password";
8-
inputArea.appendChild(showButton);
9-
10-
var appendedButton = document.getElementById("showButton");
11-
appendedButton.onmousedown = function(){ document.getElementById("password").type = "text"; };
12-
13-
appendedButton.onmouseup = function(){ document.getElementById("password").type = "password";};
14-
15-
}
4+
if ( inputArea && !showButton )
5+
{
6+
var showButton = document.createElement("div");
7+
showButton.id = "showButton";
8+
showButton.innerHTML = "Show password";
9+
inputArea.appendChild(showButton);
10+
11+
var appendedButton = document.getElementById("showButton");
12+
appendedButton.onmousedown = function(){ document.getElementById("password").type = "text"; };
13+
appendedButton.onmouseup = function(){ document.getElementById("password").type = "password";};
14+
}

communityCustomizations/ShowPasswordButton/README.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,18 @@
22

33
## Overview
44

5-
This project contains an OnLoad.js script for adding "Show Password" batton in password field on ADFS logon page.
6-
Works with password fields on Form based auth and with custom provider using domain password as secondary auth.
5+
This project contains an `onload.js` script for adding a "Show Password" button in the password field on AD FS logon pages.
6+
Works with password fields on Form based auth and with a custom provider using domain password as secondary auth.
77

88
## Applying the customization
99

1010
To add "Show password" button do the following:
1111

12-
1. Add the code from Project Onload.js to your webtheme Onload.js
12+
1. Add the code from the `onload.js` to your webtheme `onload.js`
1313

1414
2. Apply the customization according to https://docs.microsoft.com/en-us/windows-server/identity/ad-fs/operations/advanced-customization-of-ad-fs-sign-in-pages
1515

16-
### Example
17-
![Button added](/communityCustomizations/ShowPasswordButton/images/Customization1.png)
18-
![Password shown on mouse click](/communityCustomizations/ShowPasswordButton/images/Customization2.png)
19-
20-
### Special thanks to Matthew Bongiovi for sharing the code
16+
## Examples
2117

18+
![Button added](/communityCustomizations/ShowPasswordButton/images/Customization1.png)
19+
![Password shown on mouse click](/communityCustomizations/ShowPasswordButton/images/Customization2.png)

0 commit comments

Comments
 (0)