According to the Bootstrap migration guide:
Renamed .has-error to .has-danger.
However, that doesn\'t seem to work. Border and t
Managed to get it to work. @ZimSystem is correct about this.
.has-danger exist in Alpha version but it was removed in Bootstrap v4 Beta. You will need to use is-invalid selector in the input and also include class="invalid-feedback" for error message.
Here is example:
Sorry, that username's taken. Try another?