mirror of
https://github.com/coder/coder.git
synced 2026-10-16 14:48:56 +08:00
chore: apply some missed code review nits from 29256 (#29289)
Addresses follow-ups from #29256
This commit is contained in:
@@ -51,7 +51,7 @@ func (r *RootCmd) updateUserEmail() *serpent.Command {
|
||||
_, _ = fmt.Fprintf(inv.Stdout,
|
||||
"This will update the email address for the account currently using %q to %q.\n"+
|
||||
"All Coder sessions and API tokens for that user will be revoked.\n"+
|
||||
"If the user logs in with an external identity provider, it may overwrite the email when the user next signs in.\n",
|
||||
"If the user logs in with an external identity provider, it may overwrite the new email when the user next signs in.\n",
|
||||
oldEmail, newEmail,
|
||||
)
|
||||
|
||||
|
||||
+1
-1
@@ -976,7 +976,7 @@ func (api *API) putUserEmailExperimental(rw http.ResponseWriter, r *http.Request
|
||||
UpdatedAt: dbtime.Now(),
|
||||
})
|
||||
if err != nil {
|
||||
return err
|
||||
return xerrors.Errorf("update user email: %w", err)
|
||||
}
|
||||
|
||||
//nolint:gocritic // This break-glass operation must revoke all API keys
|
||||
|
||||
Reference in New Issue
Block a user