Skip to content

Commit

Permalink
Switch email field property to readonly
Browse files Browse the repository at this point in the history
  • Loading branch information
joshcanhelp committed Nov 14, 2018
1 parent 64d6852 commit 0466e97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions assets/js/edit-user-profile.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jQuery(function($) {
* Disable email changes if not an Auth0 connection.
*/
if ( emailField.length && wpa0UserProfile.userStrategy && 'auth0' !== wpa0UserProfile.userStrategy ) {
emailField.prop( 'disabled', true );
emailField.prop( 'readonly', true );
$('<p>' + wpa0UserProfile.i18n.cannotChangeEmail + '</p>')
.addClass('description')
.insertAfter(emailField);
Expand Down Expand Up @@ -78,4 +78,4 @@ jQuery(function($) {
}
);
}
});
});

0 comments on commit 0466e97

Please sign in to comment.