Remove Node registration username validation
Closes-Bug: 1606957 Change-Id: I102af0d58b6355200a8627b3aa34a267cb7bb428
This commit is contained in:
parent
1730cd2bbc
commit
a901dbdbbb
|
@ -7,13 +7,6 @@ import HorizontalTextarea from '../../ui/forms/HorizontalTextarea';
|
|||
export default class PXEAndIPMIToolDriverFields extends React.Component {
|
||||
constructor(props) {
|
||||
super(props);
|
||||
this.sshUserValidator = {
|
||||
matchRegexp: /^[a-zA-Z0-9]([._](?![._])|[a-zA-Z0-9]){6,18}[a-zA-Z0-9]$/
|
||||
};
|
||||
this.sshUserValidationMessage = 'Username must be between 8 and 20 characters ' +
|
||||
'and contain only alphanumeric characters, underscores, ' +
|
||||
'and dots.';
|
||||
|
||||
this.ipValidator = {
|
||||
matchRegexp: new RegExp('^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9]' +
|
||||
'[0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$')
|
||||
|
@ -37,8 +30,6 @@ export default class PXEAndIPMIToolDriverFields extends React.Component {
|
|||
inputColumnClasses="col-sm-7"
|
||||
labelColumnClasses="col-sm-5"
|
||||
value={this.props.node.pm_user}
|
||||
validations={this.sshUserValidator}
|
||||
validationError={this.sshUserValidationMessage}
|
||||
required />
|
||||
<HorizontalTextarea name="pm_password"
|
||||
title="IPMI Password"
|
||||
|
|
|
@ -7,13 +7,6 @@ import HorizontalTextarea from '../../ui/forms/HorizontalTextarea';
|
|||
export default class PXEAndSSHDriverFields extends React.Component {
|
||||
constructor(props) {
|
||||
super(props);
|
||||
this.sshUserValidator = {
|
||||
matchRegexp: /^[a-zA-Z0-9]([._](?![._])|[a-zA-Z0-9]){2,18}[a-zA-Z0-9]$/
|
||||
};
|
||||
this.sshUserValidationMessage = `Username must be between 4 and 20 characters
|
||||
and contain only alphanumeric characters, underscores,
|
||||
and dots.`;
|
||||
|
||||
this.ipValidator = {
|
||||
matchRegexp: new RegExp('^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9]' +
|
||||
'[0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$')
|
||||
|
@ -37,8 +30,6 @@ export default class PXEAndSSHDriverFields extends React.Component {
|
|||
inputColumnClasses="col-sm-7"
|
||||
labelColumnClasses="col-sm-5"
|
||||
value={this.props.node.pm_user}
|
||||
validations={this.sshUserValidator}
|
||||
validationError={this.sshUserValidationMessage}
|
||||
required />
|
||||
<HorizontalTextarea name="pm_password"
|
||||
title="SSH Key"
|
||||
|
|
Loading…
Reference in New Issue