dektrium yii2 user - use email as username

Hi, i use dektrium yii2 user for user authenticantion. The problem is some of the user use their email address as username when register. By doing so, the registration success, but fail when login. How to fix this?

Sorry i post on wrong forum section, someone can move this to extension section?

Hi, i use dektrium yii2 user for user authenticantion. The problem is some of the user use their email address as username when register. By doing so, the registration success, but fail when login. How to fix this?

[color="#006400"]/* topics moved and merged */[/color]

Check the rules of LoginForm at

and modify then so that the login name accepts email addresses.