It seems that for hotspots living on routerboards, there is no way to implement a self help forgot password / change password functionality for the hotspot users by customizing the html pages of the hotspot and invoke scripts to do the job.
Therefore this functionality could maybe be built-in in future versions, with various options such as the password itself being emailed to the user or a link being emailed then allowing him to change his old password to a new one.