-
Notifications
You must be signed in to change notification settings - Fork 217
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: optional smtp block should not override remote
- Loading branch information
1 parent
0e8d7c4
commit 2157392
Showing
7 changed files
with
63 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -365,6 +365,7 @@ func TestEmailDiff(t *testing.T) { | |
}, | ||
}, | ||
Smtp: &smtp{ | ||
Enabled: cast.Ptr(true), | ||
Host: "smtp.sendgrid.net", | ||
Port: 587, | ||
User: "apikey", | ||
|
@@ -535,6 +536,15 @@ func TestEmailDiff(t *testing.T) { | |
"email_change": {}, | ||
"reauthentication": {}, | ||
}, | ||
Smtp: &smtp{ | ||
Enabled: cast.Ptr(false), | ||
Host: "smtp.sendgrid.net", | ||
Port: 587, | ||
User: "apikey", | ||
Pass: "test-key", | ||
AdminEmail: "[email protected]", | ||
SenderName: "Admin", | ||
}, | ||
MaxFrequency: time.Minute, | ||
OtpLength: 6, | ||
OtpExpiry: 3600, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,17 +22,3 @@ diff remote[auth] local[auth] | |
[email.template] | ||
[email.template.confirmation] | ||
content_path = "" | ||
@@ -71,13 +71,6 @@ | ||
content_path = "" | ||
[email.template.recovery] | ||
content_path = "" | ||
-[email.smtp] | ||
-host = "smtp.sendgrid.net" | ||
-port = 587 | ||
-user = "apikey" | ||
-pass = "hash:ed64b7695a606bc6ab4fcb41fe815b5ddf1063ccbc87afe1fa89756635db520e" | ||
-admin_email = "[email protected]" | ||
-sender_name = "Admin" | ||
|
||
[sms] | ||
enable_signup = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters