I've created a registration form control for a Sitecore site that will create a Sitecore user for registration. However, I need to implement some authorisation of the account before the user can log in with it and want to set the account to be disabled on creation.
I've been making use of the Security.Accounts.User class to achieve this so far, but can't seem to find anything in the Sitecore API that will allow me to disable the account. I know it is possible to disable accounts as the GUI contains a button to do this. Is there a way to achieve this programatically or am I looking for something that isn't there?
I'm using Sitecore 6.0 rev 090120.