File tree Expand file tree Collapse file tree
app/sprinkles/account/src/Repository Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
1111- Italian translation ([ #950 ] )
1212- User Registration failing when trying to register two accounts with the same email address ([ #953 ] )
1313- Bad test case for ` CoreController::getAsset ` .
14+ - Fix PHP Fatal error that can be thrown when registering a new User
1415
1516## [ v4.2.0]
1617### Changed Requirements
Original file line number Diff line number Diff line change 99
1010namespace UserFrosting \Sprinkle \Account \Repository ;
1111
12+ use UserFrosting \Sprinkle \Account \Database \Models \Interfaces \UserInterface ;
1213use UserFrosting \Sprinkle \Account \Facades \Password ;
1314
1415/**
@@ -27,7 +28,7 @@ class PasswordResetRepository extends TokenRepository
2728 /**
2829 * {@inheritdoc}
2930 */
30- protected function updateUser ($ user , $ args )
31+ protected function updateUser (UserInterface $ user , $ args )
3132 {
3233 $ user ->password = Password::hash ($ args ['password ' ]);
3334 // TODO: generate user activity? or do this in controller?
You can’t perform that action at this time.
0 commit comments