Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
admin-fe
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Pleroma
admin-fe
Merge requests
!105
Fix parsing emails with symbols
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Fix parsing emails with symbols
fix/emails-with-symbols
into
develop
Overview
0
Commits
1
Pipelines
1
Changes
1
Merged
Angelina Filippova
requested to merge
fix/emails-with-symbols
into
develop
5 years ago
Overview
0
Commits
1
Pipelines
1
Changes
1
Expand
Closes
#92 (closed)
Edited
5 years ago
by
Angelina Filippova
0
0
Merge request reports
Compare
develop
develop (base)
and
latest version
latest version
88b5abc6
1 commit,
5 years ago
1 file
+
4
−
5
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
src/api/invites.js
+
4
−
5
Options
@@ -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
})
}
Loading