From 89717c2a779522a73f4c062e42eb387a6d1e6a61 Mon Sep 17 00:00:00 2001
From: David Lu <david.lu@hotmail.com>
Date: Tue, 31 May 2016 13:20:27 -0700
Subject: Added maxlength for nicknames (#3186)

---
 webapp/components/user_settings/user_settings_general.jsx | 1 +
 1 file changed, 1 insertion(+)

(limited to 'webapp/components/user_settings/user_settings_general.jsx')

diff --git a/webapp/components/user_settings/user_settings_general.jsx b/webapp/components/user_settings/user_settings_general.jsx
index 6149b1630..da195d0be 100644
--- a/webapp/components/user_settings/user_settings_general.jsx
+++ b/webapp/components/user_settings/user_settings_general.jsx
@@ -681,6 +681,7 @@ class UserSettingsGeneralTab extends React.Component {
                                 type='text'
                                 onChange={this.updateNickname}
                                 value={this.state.nickname}
+                                maxLength={Constants.MAX_NICKNAME_LENGTH}
                                 autoCapitalize='off'
                             />
                         </div>
-- 
cgit v1.2.3-1-g7c22

