mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-25 18:55:32 -06:00
Multi step registration
This commit is contained in:
@@ -70,6 +70,12 @@ const usersRegisterValidator = [
|
||||
.end()
|
||||
}
|
||||
|
||||
if (body.channel.name === body.username) {
|
||||
return res.status(400)
|
||||
.send({ error: 'Channel name cannot be the same than user username.' })
|
||||
.end()
|
||||
}
|
||||
|
||||
const existing = await ActorModel.loadLocalByName(body.channel.name)
|
||||
if (existing) {
|
||||
return res.status(409)
|
||||
|
||||
Reference in New Issue
Block a user