Fix preshared key not persisted in config (#1474)

* replace the preshared key attribute in LoginRequest protobuff with an optional replacement

* mark old field as deprecated

* fix ui client to also keep preshared key
This commit is contained in:
pascal-fischer
2024-01-19 10:30:41 +01:00
committed by GitHub
parent 93646e6a13
commit f099e02b34
6 changed files with 197 additions and 165 deletions

View File

@ -205,7 +205,9 @@ func (s *Server) Login(callerCtx context.Context, msg *proto.LoginRequest) (*pro
s.mutex.Unlock()
inputConfig.PreSharedKey = &msg.PreSharedKey
if msg.OptionalPreSharedKey != nil {
inputConfig.PreSharedKey = msg.OptionalPreSharedKey
}
config, err := internal.UpdateOrCreateConfig(inputConfig)
if err != nil {