Merge pull request #243 from vector-im/kegan/reg-errors-176
Fix #176 Password complexity error messagepull/258/head
commit
1188c4c69f
|
@ -173,6 +173,12 @@ module.exports = React.createClass({
|
||||||
case this.FieldErrors.InUse:
|
case this.FieldErrors.InUse:
|
||||||
strings.push(keys[i]+" is already taken");
|
strings.push(keys[i]+" is already taken");
|
||||||
break;
|
break;
|
||||||
|
case this.FieldErrors.Length:
|
||||||
|
strings.push(keys[i] + " is not long enough.");
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
console.error("Unhandled FieldError: %s", bad[keys[i]]);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
var errtxt = strings.join(', ');
|
var errtxt = strings.join(', ');
|
||||||
|
|
Loading…
Reference in New Issue