You can try from ssh:
amportal admin auth_none (you can login now without credentials)
Now you can Add/Remove or edit users with passwords in the webgui.
Afterwords from ssh type
amportal admin auth_database (now the credentials are needed again to login to the webgui)
Hope this will help you with your problem.