use TEST_IP for the test auth alert email
This commit is contained in:
parent
779059eca3
commit
63b89533a9
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue