fix ns register validation bug

This commit is contained in:
Shivaram Lingamneni 2019-01-09 15:03:44 -05:00
parent d6494957a4
commit 0475fe882c
1 changed files with 1 additions and 1 deletions

View File

@ -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]
} }