Skip to content

Commit

Permalink
Update pkg/config/config.go
Browse files Browse the repository at this point in the history
  • Loading branch information
sweatybridge authored Oct 4, 2024
1 parent 5e00997 commit 2dbc9f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -835,7 +835,7 @@ func (c *baseConfig) Validate(fsys fs.FS) error {
// Validate email config
for name, tmpl := range c.Auth.Email.Template {
if len(tmpl.ContentPath) > 0 {
if _, err = fs.Stat(fsys, filepath.Clean(tmpl.ContentPath)); err != nil {
if _, err = fs.Stat(fsys, tmpl.ContentPath); err != nil {
return errors.Errorf("Invalid config for auth.email.%s.content_path: %s", name, tmpl.ContentPath)
}
}
Expand Down

0 comments on commit 2dbc9f0

Please sign in to comment.