I am creating a module in which I want to check some condition after customer successfully login, if condition is true then customer login otherwise not.
I know two ways of doing this :
- With Magento event.
My query are:
- which is the best way?
- Is there any event with which I can full fill my requirement?
Or if there is other best way of doing this, please recommend.