Skip to content

Commit

Permalink
removed the hashed password, now reading directly from heroku config
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] committed Jul 10, 2017
1 parent 92b1ea5 commit de0d84c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion admin/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,6 @@
yourls_do_action( 'admin_page_before_content' );

if ( !$is_bookmark ) { ?>
<p>we are testing <?php echo getenv('USERNAME') ?></p>
<p><?php echo $search_sentence; ?></p>
<p><?php
printf( yourls__( 'Display <strong>%1$s</strong> to <strong class="increment">%2$s</strong> of <strong class="increment">%3$s</strong> URLs' ), $display_on_page, $max_on_page, $total_items );
Expand Down
3 changes: 2 additions & 1 deletion user/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
* Notepad on Windows. Make sure there is no character before the opening <?php at the beginning of this file.
*/

define( 'YOURLS_NO_HASH_PASSWORD', true );

$url = parse_url(getenv("CLEARDB_DATABASE_URL"));

$server = $url["host"];
Expand Down Expand Up @@ -67,7 +69,6 @@
** YOURLS will auto encrypt plain text passwords in this file
** Read http://yourls.org/userpassword for more information */
$yourls_user_passwords = array(
'shahin' => 'md5:18537:a45927812c079d3d5fef38ba483a3dc0',
getenv('USERNAME') => getenv('PASSWORD'),
// 'username2' => 'password2',
// You can have one or more 'login'=>'password' lines
Expand Down

0 comments on commit de0d84c

Please sign in to comment.