Error Adding OTP to User Account: 'The name of the root user cannot be changed'

Started by MrHappyHippo, September 27, 2025, 07:37:22 PM

Previous topic - Next topic
When attempting to enable OTP for my administrator account, I received an error indicating that the username cannot be changed, even though I didn't modify it only attempted to add OTP.


I'm not very familiar with the codebase, but I don't see why adding OTP or other non-critical information to a user account should be restricted, especially when the username or other core fields aren't being altered. I understand that the root username itself should not be changed or deleted, but I believe users should still be able to modify other fields (like enabling OTP) without issues.


also my root user name is not root i was able to modify the username when setting up my system

> That constraint for the root user is quite recent:

Not counting the bug that was introduced while converting user/groups to MVC/API.  ;)


Cheers,
Franco