Skip to content

Commit

Permalink
Update docs to fix some typos (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
bongiovimatthew-microsoft committed Apr 16, 2018
1 parent 53e9ff2 commit d199ccf
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 23 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -12,7 +12,7 @@ to your [Azure Application Insights](https://azure.microsoft.com/en-us/services/

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

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

## Contributing

Expand Down
2 changes: 1 addition & 1 deletion communityCustomizations/README.md
Expand Up @@ -19,7 +19,7 @@ To add your customizations, please do the following:

## Customizations

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

## Contributing (Special Note)

Expand Down
25 changes: 12 additions & 13 deletions communityCustomizations/ShowPasswordButton/OnLoad.js
@@ -1,15 +1,14 @@
var inputArea = document.getElementById("inputArea");
var showButton = document.getElementById("showButton");

if(inputArea){
console.log("hello");
var showButton = document.createElement("div");
showButton.id = "showButton";
showButton.innerHTML = "Show password";
inputArea.appendChild(showButton);

var appendedButton = document.getElementById("showButton");
appendedButton.onmousedown = function(){ document.getElementById("password").type = "text"; };

appendedButton.onmouseup = function(){ document.getElementById("password").type = "password";};

}
if ( inputArea && !showButton )
{
var showButton = document.createElement("div");
showButton.id = "showButton";
showButton.innerHTML = "Show password";
inputArea.appendChild(showButton);

var appendedButton = document.getElementById("showButton");
appendedButton.onmousedown = function(){ document.getElementById("password").type = "text"; };
appendedButton.onmouseup = function(){ document.getElementById("password").type = "password";};
}
14 changes: 6 additions & 8 deletions communityCustomizations/ShowPasswordButton/README.md
Expand Up @@ -2,20 +2,18 @@

## Overview

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

## Applying the customization

To add "Show password" button do the following:

1. Add the code from Project Onload.js to your webtheme Onload.js
1. Add the code from the `onload.js` to your webtheme `onload.js`

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

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

### Special thanks to Matthew Bongiovi for sharing the code
## Examples

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

0 comments on commit d199ccf

Please sign in to comment.