- Forgot password and invites:
POST /public/password-set {role, email or mobile, otp, password}sets a new password with the code from/public/otp-send-emailor-mobile, for the user with that email or mobile and role (password rules, hashed, logged; the code works once; 5 a minute). An invite is the same route: an admin creates the user as today with a password nobody is told, sets their email, and the person sets their own. Role 1 and deleted or deactivated users are refused; without the code, nothing tells whether an account exists. Nothing existing changes (docs/auth.md).