Fix api to catch new generate password in mailer"