Password-based authentication for Foxx based on Eric Elliott's credential module.