summaryrefslogtreecommitdiffstats
path: root/api/user.go
diff options
context:
space:
mode:
authornickago <ngonella@calpoly.edu>2015-07-30 13:54:00 -0700
committernickago <ngonella@calpoly.edu>2015-07-30 13:54:00 -0700
commita41c42c4d4d78cab6ff12a932675aee8bd4aab86 (patch)
treecfd4abf7e1438b1fbbe580e43c66dc9995cbd50f /api/user.go
parentaac256711605fc3801606c14eb8dc8638b30f0d2 (diff)
downloadchat-a41c42c4d4d78cab6ff12a932675aee8bd4aab86.tar.gz
chat-a41c42c4d4d78cab6ff12a932675aee8bd4aab86.tar.bz2
chat-a41c42c4d4d78cab6ff12a932675aee8bd4aab86.zip
Updated error message for an incorrect password
Diffstat (limited to 'api/user.go')
-rw-r--r--api/user.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/user.go b/api/user.go
index e1d5e83dd..73bf2e6ef 100644
--- a/api/user.go
+++ b/api/user.go
@@ -835,7 +835,7 @@ func updatePassword(c *Context, w http.ResponseWriter, r *http.Request) {
}
if !model.ComparePassword(user.Password, currentPassword) {
- c.Err = model.NewAppError("updatePassword", "Update password failed because of invalid password", "")
+ c.Err = model.NewAppError("updatePassword", "The \"Current Password\" you entered is incorrect. Please check that Caps Lock is off and try again.", "")
c.Err.StatusCode = http.StatusForbidden
return
}