Skip to content

Commit

Permalink
Merge pull request #358 from kevinam99/main
Browse files Browse the repository at this point in the history
Switch MAILER_SMTP_FROM_EMAIL and MAILER_SMTP_USER defaults and fix CLA signing script
  • Loading branch information
wmnnd authored Dec 18, 2024
2 parents 5d0d56d + e5f82b6 commit faa4a1f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .cla/contributors.txt
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
Drxv52be4bkwIk4djnqQl/PfJXwnwP2C5I5BMFEi5ikLMPzAjdz80oqEwZ7hw62BmnUtBiX57rg3nLuaCDJ2DIX4VXkUJWtFRUpDdSclJNa0O4Ts26s3fCaIHfpRO4cqtd5Pco1qyns/L0gjD2EEF2h5m1Qu7k/PRrR1XAFuJw5P6O2UIKTVoeKegw5NQirDAS9g4v8a9PLbSA4ias5Bu12Zx9hqm9Q9UMYNBFtOlmcGWKKMV5WmvT3+22VqHuLTIiOPbhZ6xIowJ6v+gxrQWWI43dW2A0jDvMpqlH4q/GscALjAlpWX4fOwO/Xp9rGF0rNgeUPOPRDd3uVY0v5lFpC6ddrhlrYo1JfecFaHwx/NGPLKvIw1vJe9D6DCzdisZ1Q5bmdvaFYfy26gxTrY8Ab3hkv74ZLLjktz05YcdBlaerpIVR1AmX8WSLciE7/xHQ6iZjdtKMiBQ7DCCiaFhjLunZac9WEDMtkbuVQ4fhgAFPjmKck6os+S/C4jZ5de1JNj6Tfuc927wVi21lMKkV4ue/Ik5Sw4ZmFdmC13nHwfw+2Jd8xFJKx8fokS5yPyRgbQdjyjP5dhig8evsgypgCCgfBMLDdNLXRmZr/chvUo10xIxV6ohFd/L8fmBlbQi5hpH0GmSIPNN93kfuUQM7d1gb9h1AYuYjEjAKgmJVg=

U4YAieRHJAgjTsn2khOtqpCUvIHgoF7pHvpr/3Z7WsrRo+NOTwdmW59buUw+8/ZS6UErdg4pi4gpq8pholBvQwtlYzvkMkHoeyr2/Q6KCMSB8sI3xJEW7rse0Tbjd/fNLO+dHRaUuufB4vDxQ7OSY3DLlz6QdLtMUriiwTzNOSNglu6C1C4jUckmiZaEY7F44vggdSdF6sbp/lnAipo732buZWspoVqQu3aPaph8lcDtjExX+iLevOusBkpGEVJuEo/j3VYoynPhTC3Y6wuZWJwLbAif1cmtl4kRmzjuFRBlN96742+0oNUnmk2GBYuel7YKkE94KAu+wRilGb1UfqUB5MkhUtsXv11ZhBJHvL5WuOpnCI8F/svP5zyiRQRSbiwsXDhFGv3gVj8Pp0MLNJaNnSx103xcnbCLAFdAkhJpyTbIjeZ6MQZ3U3BZBZ9QlKMcZevouDdbDbhKasMUvPComJczIWAVqEB28qHlgDl3pjrD5QrsTQ4CXUnUQx0Ri/2a56ePOK5tmDrOHRNyu/Agv/FiOKkWmRIYKtdc5J4qgKeI15zO7eAHHHyhQT2iEr4vf0lV2mBRFsel1w5BcOsVzfqwwO5PZ4FmwOvveyPnzPiNV4vz3nkbvyWJpjH511TVSy28h69NP4f3lp40moYdRJ+uC5blB38nAaXx3lI=

2 changes: 1 addition & 1 deletion .cla/sign.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ if ! confirm "Write an encrypted version of this signature to .cla/contributors.
exit 1
fi

echo $signature | openssl pkeyutl -encrypt -pubin -inkey "$path/key.pub" | base64 -w0 >> "$path/contributors.txt"
echo $signature | openssl pkeyutl -encrypt -pubin -inkey "$path/key.pub" | base64 >> "$path/contributors.txt"
echo >> "$path/contributors.txt"
echo "Written signature to .cla/contributors.txt."

Expand Down
4 changes: 2 additions & 2 deletions config/runtime.exs
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ if config_env() == :prod do
case mailer_type do
"smtp" ->
host = System.fetch_env!("MAILER_SMTP_HOST")
user = System.fetch_env!("MAILER_SMTP_USER")
from_email = System.get_env("MAILER_SMTP_FROM_EMAIL") || user
from_email = System.fetch_env!("MAILER_SMTP_FROM_EMAIL")
user = System.get_env("MAILER_SMTP_USER") || from_email
password = System.fetch_env!("MAILER_SMTP_PASSWORD")
port = System.get_env("MAILER_SMTP_PORT", "587") |> maybe_to_int.()
ssl? = System.get_env("MAILER_ENABLE_SSL", "FALSE") in [1, "1", "true", "TRUE"]
Expand Down

0 comments on commit faa4a1f

Please sign in to comment.