Skip to content

Commit

Permalink
Final touches
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewC committed May 4, 2022
1 parent 664f1d7 commit 5a2bf85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ function matthew_pwprotection_process_new() {
$matthew_pwprotection_array = json_decode(yourls_get_option('matthew_pwprotection'), true);

foreach( $_POST[ 'password' ] as $url => $url_password) {
if($url_password != "DONOTCHANGE") {
if($url_password != "DONOTCHANGE_8fggwrFrRXvqndzw") {
$_POST[ 'password' ][ $url ] = password_hash($url_password, PASSWORD_BCRYPT);
} else {
$_POST[ 'password' ][ $url ] = $matthew_pwprotection_array[ $url ];
Expand Down Expand Up @@ -285,7 +285,7 @@ function matthew_pwprotection_process_display() {
}
if( array_key_exists( $short, (array)$matthew_pwprotection_array ) ){ // Check if URL is currently password protected or not
$text = yourls__( "Enable?" );
$password = "DONOTCHANGE";
$password = "DONOTCHANGE_8fggwrFrRXvqndzw";
$checked = " checked";
$unchecked = '';
$style = '';
Expand Down

0 comments on commit 5a2bf85

Please sign in to comment.