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
Commits
88b5abc6
Commit
88b5abc6
authored
5 years ago
by
Angelina Filippova
Browse files
Options
Downloads
Patches
Plain Diff
Fix parsing emails with symbols
parent
ce3d3387
Branches
Branches containing commit
Tags
Tags containing commit
2 merge requests
!125
WIP: Release/2.0.3
,
!105
Fix parsing emails with symbols
Pipeline
#23791
passed
5 years ago
Stage: build
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/api/invites.js
+4
-5
4 additions, 5 deletions
src/api/invites.js
with
4 additions
and
5 deletions
src/api/invites.js
+
4
−
5
View file @
88b5abc6
...
...
@@ -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
})
}
...
...
This diff is collapsed.
Click to expand it.
Angelina Filippova
@linafilippova
mentioned in commit
95729814
·
5 years ago
mentioned in commit
95729814
mentioned in commit 95729814860200fdf4f0e792a4ba9f02a4800402
Toggle commit list
feld
@feld
mentioned in merge request
!113 (merged)
·
5 years ago
mentioned in merge request
!113 (merged)
mentioned in merge request !113
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment