Interface EmailAddressResolver
- All Known Implementing Classes:
EmailVerificationService
public interface EmailAddressResolver
Says where a user's mail goes. A user record here has a name and no address, so the flows that send mail ask this.
@Bean
EmailAddressResolver addresses(AccountRepository accounts) {
return username -> accounts.findByUsername(username).getEmail();
}
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final EmailAddressResolverThe user name itself where it is an address, as it is in an application whose users sign in with one; nothing otherwise. -
Method Summary
-
Field Details
-
USERNAME
The user name itself where it is an address, as it is in an application whose users sign in with one; nothing otherwise.
-
-
Method Details
-
emailFor
-