RSS Feed/News UserRepo::setupBaseUser doesn't setup dependant entities as expected

Status
Not open for further replies.

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
26,000
Points
823

Reputation:

setupBaseUser calls getRelationOrDefault on a number of critical user relations. However, it doesn't call hydrateRelation on those entities User relationship.

My use case is making Auth::setPassword have additional complexity rules such as forbidding public or easily obtainable information as part of the password on registration.

A user's email address should not be allowed as their password :(

Continue reading...
 
Status
Not open for further replies.
Top