You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently there is "no way" to change default admin username.
If I create new full permissions user (say, root_admin) and try to delete old default one, then I get:
There was an unexpected error (type=Internal Server Error, status=500).
org.springframework.dao.InvalidDataAccessApiUsageException: Can't delete admin user.; nested exception is java.lang.IllegalArgumentException: Can't delete admin user.
...
at org.airsonic.player.controller.UserSettingsController.deleteUser(UserSettingsController.java:179)
at org.airsonic.player.controller.UserSettingsController.doSubmitAction(UserSettingsController.java:151)
...
If I change name in database manually, then I loose safety check mentioned above.
Feature
I propose to make administrator name configurable.
Allow to set environment variable (Spring property) with custom admin username (and probably password) like Postgres do with POSTGRES_USER (and POSTGRES_PASSWORD), for example.
Only make configurable USERNAME_ADMIN in UserDao. Then we can change username manually in database and don't lose sefety check at least.
The text was updated successfully, but these errors were encountered:
Scope
Other
What problem
Currently there is "no way" to change default
admin
username.If I create new full permissions user (say,
root_admin
) and try to delete old default one, then I get:If I change name in database manually, then I loose safety check mentioned above.
Feature
I propose to make administrator name configurable.
POSTGRES_USER
(andPOSTGRES_PASSWORD
), for example.USERNAME_ADMIN
inUserDao
. Then we can change username manually in database and don't lose sefety check at least.The text was updated successfully, but these errors were encountered: