mirror of
https://github.com/discourse/discourse.git
synced 2025-03-26 02:06:41 +08:00
DEV: Fix typo for email encoded (#15577)
This commit is contained in:
parent
8ef3513e4a
commit
5d0c2cba07
@ -171,7 +171,7 @@ class Admin::EmailController < Admin::AdminController
|
|||||||
# TODO: 2022-05-01 Remove this route once all sites have migrated over
|
# TODO: 2022-05-01 Remove this route once all sites have migrated over
|
||||||
# to using the new email_encoded param.
|
# to using the new email_encoded param.
|
||||||
if deprecated_email_param_used
|
if deprecated_email_param_used
|
||||||
render plain: "warning: the email parameter is deprecated. all POST requests to this route should be sent with a base64 strict encoded encoded_email parameter instead. email has been received and is queued for processing"
|
render plain: "warning: the email parameter is deprecated. all POST requests to this route should be sent with a base64 strict encoded email_encoded parameter instead. email has been received and is queued for processing"
|
||||||
else
|
else
|
||||||
render plain: "email has been received and is queued for processing"
|
render plain: "email has been received and is queued for processing"
|
||||||
end
|
end
|
||||||
|
@ -216,7 +216,7 @@ describe Admin::EmailController do
|
|||||||
post "/admin/email/handle_mail.json", params: { email: email('cc') }
|
post "/admin/email/handle_mail.json", params: { email: email('cc') }
|
||||||
end
|
end
|
||||||
expect(response.status).to eq(200)
|
expect(response.status).to eq(200)
|
||||||
expect(response.body).to eq("warning: the email parameter is deprecated. all POST requests to this route should be sent with a base64 strict encoded encoded_email parameter instead. email has been received and is queued for processing")
|
expect(response.body).to eq("warning: the email parameter is deprecated. all POST requests to this route should be sent with a base64 strict encoded email_encoded parameter instead. email has been received and is queued for processing")
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'should enqueue the right job, decoding the raw email param' do
|
it 'should enqueue the right job, decoding the raw email param' do
|
||||||
|
Loading…
x
Reference in New Issue
Block a user