use TEST_IP for the test auth alert email
This commit is contained in:
@@ -110,7 +110,7 @@ func (form *TestEmailSend) Submit() error {
|
|||||||
case TestTemplateOTP:
|
case TestTemplateOTP:
|
||||||
return mails.SendRecordOTP(form.app, record, "_PB_TEST_OTP_ID_", "123456")
|
return mails.SendRecordOTP(form.app, record, "_PB_TEST_OTP_ID_", "123456")
|
||||||
case TestTemplateAuthAlert:
|
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)
|
return mails.SendRecordAuthAlert(form.app, record, testEvent)
|
||||||
default:
|
default:
|
||||||
return errors.New("unknown template " + form.Template)
|
return errors.New("unknown template " + form.Template)
|
||||||
|
|||||||
Reference in New Issue
Block a user