Skip to content

Commit 699ff5a

Browse files
committed
lint
1 parent 63eadcb commit 699ff5a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

coderd/httpmw/apikey.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,8 @@ func ExtractAPIKey(rw http.ResponseWriter, r *http.Request, cfg ExtractAPIKeyCon
394394
}
395395

396396
if roles.Status == database.UserStatusDormant {
397+
// If coder confirms that the dormant user is valid, it can switch their account to active.
398+
// nolint:gocritic
397399
u, err := cfg.DB.UpdateUserStatus(dbauthz.AsSystemRestricted(ctx), database.UpdateUserStatusParams{
398400
ID: key.UserID,
399401
Status: database.UserStatusActive,

0 commit comments

Comments
 (0)