Closed lecegues closed 5 months ago
Your solution sounds promising. Let's go ahead with implementing the unique identifier approach. It seems like the most straightforward way to handle this issue effectively.
But remember that for patch request i am giving id as 1 in fronted for always so we have to also change it to unique identifiers or use different logic for it . What do u think for that ?
Description
With the addition of the settings page and the ability to change username/password in
feature/photo-upload-settings
, it seems that changing the username works, but recreates the default user upon startupCause
The cause seems to be because a
DEFAULT_USER
is defined in the ENV file and is initialized in theinitialize.js
file; howeverinitialize.js
runs every time the system starts. It first checks if the username exists in the database, and if it doesn't it registers it.DEFAULT_USER
againPotential Solutions