I've recently installed Woocommerce. I have realized that the administrator can access the back-end through the same login form presented to the customers. This, to me, presents a huge security risk.
I thought of a couple of solutions, but I do not know the code that would help me implement them:
How can I prevent the administrators from logging in through the customer login page? (if statement on login from the customer login form that would check the role of the user and prevent login if the user is an admin)
How can I present a login form so that only the customers can login through? (use a default or native login form set only for customers)