Yii Framework Forum: dektrium yii2 user - use email as username - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

dektrium yii2 user - use email as username Rate Topic: -----

#1 User is offline   Strance 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 89
  • Joined: 03-August 15

Posted 30 January 2018 - 03:15 AM

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?

This post has been edited by Strance: 30 January 2018 - 07:30 PM

0

#2 User is offline   Strance 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 89
  • Joined: 03-August 15

Posted 04 February 2018 - 07:48 AM

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?
0

#3 User is offline   softark 

  • Keep It Simple
  • Yii
  • Group: Moderators
  • Posts: 3,642
  • Joined: 16-February 11
  • Location:Japan

Posted 04 February 2018 - 06:43 PM

/* topics moved and merged */
0

#4 User is offline   WeeSee 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 4
  • Joined: 23-January 18

Posted 11 February 2018 - 12:54 PM

Check the rules of LoginForm at
github.com/dektrium/yii2-user/blob/6e841f935f3af814cfadf16e4ae5f44b47741049/models/LoginForm.php#L85

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

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users