use TEST_IP for the test auth alert email

This commit is contained in:
Gani Georgiev 2025-11-22 09:36:20 +02:00
parent 779059eca3
commit 63b89533a9
1 changed files with 1 additions and 1 deletions

View File

@ -110,7 +110,7 @@ func (form *TestEmailSend) Submit() error {
case TestTemplateOTP:
return mails.SendRecordOTP(form.app, record, "_PB_TEST_OTP_ID_", "123456")
case TestTemplateAuthAlert:
testEvent := types.NowDateTime().String() + " - 127.0.0.1 TEST_USER_AGENT"
testEvent := types.NowDateTime().String() + " - TEST_IP TEST_USER_AGENT"
return mails.SendRecordAuthAlert(form.app, record, testEvent)
default:
return errors.New("unknown template " + form.Template)