Authored by 于良

登录和修改密码时限制最多输入30个字符, review by zhuxiaojun

@@ -50,6 +50,7 @@ export default class Login extends Component { @@ -50,6 +50,7 @@ export default class Login extends Component {
50 selectionColor={'white'} 50 selectionColor={'white'}
51 autoCapitalize={'none'} 51 autoCapitalize={'none'}
52 autoCorrect={false} 52 autoCorrect={false}
  53 + maxLength={30}
53 /> 54 />
54 <TouchableOpacity 55 <TouchableOpacity
55 onPress={this.props.onDeleteUserPress}> 56 onPress={this.props.onDeleteUserPress}>
@@ -74,6 +75,7 @@ export default class Login extends Component { @@ -74,6 +75,7 @@ export default class Login extends Component {
74 selectionColor={'white'} 75 selectionColor={'white'}
75 autoCapitalize={'none'} 76 autoCapitalize={'none'}
76 autoCorrect={false} 77 autoCorrect={false}
  78 + maxLength={30}
77 /> 79 />
78 <TouchableOpacity 80 <TouchableOpacity
79 onPress={this.props.onShowPwdPress}> 81 onPress={this.props.onShowPwdPress}>
@@ -49,7 +49,7 @@ export default class ModifyPassword extends Component { @@ -49,7 +49,7 @@ export default class ModifyPassword extends Component {
49 secureTextEntry={true} 49 secureTextEntry={true}
50 underlineColorAndroid='transparent' 50 underlineColorAndroid='transparent'
51 onChangeText={this.props.onModifyOldPwd} 51 onChangeText={this.props.onModifyOldPwd}
52 - 52 + maxLength={30}
53 /> 53 />
54 </View> 54 </View>
55 <View style={styles.line}/> 55 <View style={styles.line}/>
@@ -62,7 +62,7 @@ export default class ModifyPassword extends Component { @@ -62,7 +62,7 @@ export default class ModifyPassword extends Component {
62 secureTextEntry={true} 62 secureTextEntry={true}
63 underlineColorAndroid='transparent' 63 underlineColorAndroid='transparent'
64 onChangeText={this.props.onModifyNewPwd} 64 onChangeText={this.props.onModifyNewPwd}
65 - 65 + maxLength={30}
66 /> 66 />
67 </View> 67 </View>
68 <View style={styles.line}/> 68 <View style={styles.line}/>
@@ -75,7 +75,7 @@ export default class ModifyPassword extends Component { @@ -75,7 +75,7 @@ export default class ModifyPassword extends Component {
75 secureTextEntry={true} 75 secureTextEntry={true}
76 underlineColorAndroid='transparent' 76 underlineColorAndroid='transparent'
77 onChangeText={this.props.onModifyRepeatPwd} 77 onChangeText={this.props.onModifyRepeatPwd}
78 - 78 + maxLength={30}
79 /> 79 />
80 </View> 80 </View>
81 <Button style={styles.button} 81 <Button style={styles.button}