HaugrNet / eds

Cryptographic Web Share
https://haugr.net/
Apache License 2.0
6 stars 0 forks source link

Change initial System Administrator Name #61

Open knjensen opened 5 years ago

knjensen commented 5 years ago

Currently (CWS 1.0 & CWS 1.1), the initial System Administrator is hardcoded to "admin". Meaning, that this account must always be present. The goal is to make this account more flexible, so the initial System Administrator can have any name requested. Since the default Administrator name is heavily abused in the entire code & test base, this change is not entirely trivial - and it is thus not assigned to a specific release, primarily as the work-around is fairly simple, create a second System Administrator and delete the initial.

knjensen commented 4 years ago

The MasterKeySevice class has a method called "findAdmin", this method is assuming that the very first account (id == 1) is an administrator - this is true under most circumstances, but once this feature is added, it will no longer necessarily be true, hence this method must be altered.