Skip to content

Commit

Permalink
Put users into BAD_CREDENTIALS when migrating to needing a code
Browse files Browse the repository at this point in the history
  • Loading branch information
bradtgmurray committed Dec 20, 2023
1 parent 189fd3d commit 4157281
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ func (br *IMBridge) Start() {
err := user.Start()
if errors.Is(err, ErrNoNAC) {
user.zlog.Warn().Msg("NAC not configured, logging out user")
state := status.BridgeState{StateEvent: status.StateUnknownError, Error: "im-nacserv-not-configured"}
state := status.BridgeState{StateEvent: status.StateBadCredentials, Error: "im-nacserv-not-configured"}
stateForDB := state.Fill(user)
user.BridgeState.Send(state)
data, _ := json.Marshal(&stateForDB)
Expand Down

0 comments on commit 4157281

Please sign in to comment.