Class SuperUserEmailPasswordLinkService
java.lang.Object
dev.getelements.elements.service.user.SuperUserEmailPasswordLinkService
- All Implemented Interfaces:
EmailPasswordLinkService
Superuser (and UNSCOPED) implementation of
EmailPasswordLinkService.
Unlike the user-level implementation, this variant does not require a current-user context. It operates on behalf of whoever owns the email UID, making it suitable for Element code that sets credentials programmatically without an authenticated session.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlinkEmailPassword(String email, String password) Links email+password credentials to the authenticated user's account.voidsetPasswordPolicyValidator(PasswordPolicyValidator passwordPolicyValidator) voidsetUserDao(UserDao userDao) voidsetUserUidDao(UserUidDao userUidDao)
-
Constructor Details
-
SuperUserEmailPasswordLinkService
public SuperUserEmailPasswordLinkService()
-
-
Method Details
-
linkEmailPassword
Description copied from interface:EmailPasswordLinkServiceLinks email+password credentials to the authenticated user's account. The email UID must already be VERIFIED through the email-verification flow. Returns the updated User.- Specified by:
linkEmailPasswordin interfaceEmailPasswordLinkService- Parameters:
email- the verified email address to linkpassword- the password to associate with this email- Returns:
- the updated
User
-
getUserDao
-
setUserDao
-
getUserUidDao
-
setUserUidDao
-
getPasswordPolicyValidator
-
setPasswordPolicyValidator
-