Is it possible to hash password using triggers?
I was thinking something like:
CREATE TRIGGER `hash_password`
AFTER INSERT ON `users` FOR EACH ROW
BEGIN
UPDATE users SET password = HASH(NEW.password)
END
But how do I make it encrypted with bcrypt?