summaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2017-01-31 18:58:39 -0500
committerenahum <nahumhbl@gmail.com>2017-01-31 20:58:39 -0300
commit5539c92a23d955bda174c4a5fae6bf25e6cd172d (patch)
tree7d9f8d5a66805a41e2604579e92b386eccae98d7 /cmd
parent9ba968ce3354b1a8ab307ecc4cc785bdee16f914 (diff)
downloadchat-5539c92a23d955bda174c4a5fae6bf25e6cd172d.tar.gz
chat-5539c92a23d955bda174c4a5fae6bf25e6cd172d.tar.bz2
chat-5539c92a23d955bda174c4a5fae6bf25e6cd172d.zip
Fix verifying a missing user panics (#5240)
Diffstat (limited to 'cmd')
-rw-r--r--cmd/platform/user.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/platform/user.go b/cmd/platform/user.go
index fa93e418c..41f0b4f66 100644
--- a/cmd/platform/user.go
+++ b/cmd/platform/user.go
@@ -422,6 +422,7 @@ func verifyUserCmdF(cmd *cobra.Command, args []string) error {
for i, user := range users {
if user == nil {
CommandPrintErrorln("Unable to find user '" + args[i] + "'")
+ continue
}
if cresult := <-app.Srv.Store.User().VerifyEmail(user.Id); cresult.Err != nil {
CommandPrintErrorln("Unable to verify '" + args[i] + "' email. Error: " + cresult.Err.Error())