RegisterUserUseCase
class RegisterUserUseCase(userRepository: UserRepository, credentialsRepository: UserCredentialsRepository, hasher: PasswordHasher, mailer: Mailer) : RegisterUser
Use case for registering a new user in the system.
This class implements the RegisterUser interface and provides the logic for registering a user by saving their details and credentials into the respective repositories.
Constructors
Link copied to clipboard
constructor(userRepository: UserRepository, credentialsRepository: UserCredentialsRepository, hasher: PasswordHasher, mailer: Mailer)
Functions
Link copied to clipboard
open override fun execute(user: User, credentials: UserCredentials): RegisterUser.Companion.RegisterUserResult
Executes the user registration process.