Skip to content

Commit cd77405

Browse files
committed
fixup! feat: add audit logs for dormancy events
1 parent 7846882 commit cd77405

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

coderd/userauth.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,7 @@ func (api *API) loginRequest(ctx context.Context, rw http.ResponseWriter, req co
589589
}
590590

591591
func (api *API) ActivateDormantUser(ctx context.Context, user database.User) database.User {
592-
if user.Status != database.UserStatusDormant {
592+
if user.ID == uuid.Nil || user.Status != database.UserStatusDormant {
593593
return user
594594
}
595595

0 commit comments

Comments
 (0)