Security issue: Access to account without verifying e-mail address

We are having an issue with how manual registration works–notified to us by our IT Department.
First. We have two ways of accessing /reg/login to our system. Manual registration + SSO (Feide: a Norwegian national system for all inst. in education) Our SSO is working as it should, but we have just had a “slight” security breach where someone/something as gained access to our LMS by registrering a whole lot of new accounts. When one registers manually you are given direct access to LMS, and your new account. If you log of and then in again you are blocked until you have clicked on the link in the verification email that was sent out from Open edX Server. Since this is the behaviour–when you log out/time out this "attacker registered many times, just with small changes to username like mambo1, 2, 3, 4 etc.

My question is in regard to this. We do want SSO + manual registration, since many of our students are not enrolled into our national educational system and therefore do not have Feide credentials. They register manually.

How should we secure this? Is there a way to block new users from getting access to profile/LMS before they verify email address? Is there some other security function we should use?

PS: We are running Palm now, but are about to switch host, and will get the latest version of Open edX soon. Will that change anything/improve situation?

Thanks for any insight and/or suggestions

I am not totally sure if there is waffle/feature flag that does what you want, also similar issue has been raised in different thread Prevent inactive users to navigate the LMS , which make think such feature doesn’t exists.

That being said, if I were you, I would create a simple Open edX plugin that adds a django middleware, that django middleware job is to check when user is being logged in and user.is_active is False then log user out i.e redirect to mylms.com/logout.

I would also suggest to create a page that e.g. verifiy-email that tells user to check their email and their sign up is sucess, then you could redirect user to mylms.com/logout?next=/verifiy-email from Django middleware