mirror of
https://github.com/ergochat/ergo.git
synced 2024-11-10 22:19:31 +01:00
fix ns register validation bug
This commit is contained in:
parent
d6494957a4
commit
0475fe882c
@ -313,7 +313,7 @@ func nsRegisterHandler(server *Server, client *Client, command string, params []
|
|||||||
// get params
|
// get params
|
||||||
username, email := params[0], params[1]
|
username, email := params[0], params[1]
|
||||||
var passphrase string
|
var passphrase string
|
||||||
if len(params) > 0 {
|
if len(params) > 2 {
|
||||||
passphrase = params[2]
|
passphrase = params[2]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user