feat(07-02): throttle failed logins and pick mail template locale
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
16
classes/mail_test.go
Normal file
16
classes/mail_test.go
Normal file
@@ -0,0 +1,16 @@
|
||||
package classes
|
||||
|
||||
import "testing"
|
||||
|
||||
func TestMailTemplate(t *testing.T) {
|
||||
base := "golem15.user::mail.reactivate"
|
||||
if got := mailTemplate(base, "pl"); got != base {
|
||||
t.Fatalf("pl = %s", got)
|
||||
}
|
||||
if got := mailTemplate(base, ""); got != base {
|
||||
t.Fatalf("empty = %s", got)
|
||||
}
|
||||
if got := mailTemplate(base, "en"); got != base+"-en" {
|
||||
t.Fatalf("en = %s", got)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user