Skip to content

Conversation

@kenjis
Copy link
Member

@kenjis kenjis commented May 13, 2022

Needs to rebase after merging #110

  • add null check for email address

@kenjis kenjis force-pushed the add-email-null-check branch from 64efa62 to b7fd64f Compare May 13, 2022 10:54
@kenjis kenjis force-pushed the add-email-null-check branch from b7fd64f to 0ea58dc Compare May 13, 2022 11:00
throw new RuntimeException('Cannot get the User.');
}

$userEmail = $user->getAuthEmail();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At this point calling getAuthEmail() is the same as just calling ->email, right? With no trait that needs the getAuth* methods do we even need them anymore?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it is the same as calling getEmail(), so it is the same as ->email.

About getAuth*() methods, we don't need them now. But when we introduce Interface for User, probably we will need them. So I am okay to remove getAuth*() now.

@kenjis kenjis merged commit 79ed3e2 into codeigniter4:develop May 14, 2022
@kenjis kenjis deleted the add-email-null-check branch May 14, 2022 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants