Class RecoveryServiceImpl

    • Constructor Detail

      • RecoveryServiceImpl

        public RecoveryServiceImpl​(org.molgenis.data.DataService dataService,
                                   org.molgenis.data.security.user.UserService userService,
                                   RecoveryCodeFactory recoveryCodeFactory,
                                   org.molgenis.data.populate.IdGenerator idGenerator)
    • Method Detail

      • useRecoveryCode

        @Transactional
        public void useRecoveryCode​(String recoveryCode)
        Description copied from interface: RecoveryService
        Checks if a recovery code is valid for the current user and throws an exception if it is not. The code is removed after a successful recovery attempt.
        Specified by:
        useRecoveryCode in interface RecoveryService
        Parameters:
        recoveryCode - the code to validate