Skip to content
Snippets Groups Projects
Commit 95729814 authored by Angelina Filippova's avatar Angelina Filippova Committed by feld
Browse files

Merge branch 'fix/emails-with-symbols' into 'develop'

Fix parsing emails with symbols

See merge request !105

(cherry picked from commit d021c77a)

88b5abc6 Fix parsing emails with symbols
parent 54e32f7a
No related branches found
No related tags found
3 merge requests!119Hide Invites from menu when invites are disabled,!116AdminFE 2.0.2 release,!113Merge branch 'fix/emails-with-symbols' into 'master'
Pipeline #24065 passed
......@@ -13,14 +13,13 @@ export async function generateInviteToken(max_use, expires_at, authHost, token)
}
export async function inviteViaEmail(email, name, authHost, token) {
const url = name.length > 0
? `/api/pleroma/admin/users/email_invite?email=${email}&name=${name}`
: `/api/pleroma/admin/users/email_invite?email=${email}`
const data = name.length > 0 ? { email, name } : { email }
return await request({
baseURL: baseName(authHost),
url,
url: '/api/pleroma/admin/users/email_invite',
method: 'post',
headers: authHeaders(token)
headers: authHeaders(token),
data
})
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment