Thread:Project:Support desk/Aprrove account before they are able to login/reply

Some recomended me to use some existing hooks. I tried to read about it but I´m not sure if I understood it correctly. This is what I´ve done so far. I´m I going the right direction?