projects
/
oweals
/
peertube.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2db85d6
)
Improve error message on actor name conflict
author
Chocobozzz
<me@florianbigard.com>
Mon, 27 Aug 2018 14:42:27 +0000
(16:42 +0200)
committer
Chocobozzz
<me@florianbigard.com>
Mon, 27 Aug 2018 14:42:27 +0000
(16:42 +0200)
server/middlewares/validators/users.ts
patch
|
blob
|
history
diff --git
a/server/middlewares/validators/users.ts
b/server/middlewares/validators/users.ts
index f47fa8b4893b81f940ed2b35475eeffa09f7d98b..c8baf22e22c3fec7a15ebfaa0c2defcaba597a07 100644
(file)
--- a/
server/middlewares/validators/users.ts
+++ b/
server/middlewares/validators/users.ts
@@
-286,7
+286,7
@@
async function checkUserNameOrEmailDoesNotAlreadyExist (username: string, email:
const actor = await ActorModel.loadLocalByName(username)
if (actor) {
res.status(409)
- .send({ error: 'Another actor (account/channel) with this name
already exists
.' })
+ .send({ error: 'Another actor (account/channel) with this name
on this instance already exists or has already existed
.' })
.end()
return false
}