Skip to content

Commit

Permalink
Fix invisible password WRDS
Browse files Browse the repository at this point in the history
  • Loading branch information
milonemario committed Jan 18, 2024
1 parent 3339f09 commit 9fe0e04
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/modules/wrds/WRDS.jl
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ function pgpass(wrdsuser::WrdsUser)
secret_pass = Base.getpass("WRDS password for user $(wrdsuser.username)")
print("\n")
pass = read(secret_pass, String)
Base.shred!()
entry = "$WRDS_POSTGRES_HOST:$WRDS_POSTGRES_PORT:$WRDS_POSTGRES_DB:$(wrdsuser.username):$pass"
if isfile(pgpass)
# Change permission to write
Expand Down

0 comments on commit 9fe0e04

Please sign in to comment.