Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit060f023

Browse files
feat: mask coder login token to enhance security (#12948)
* feat(login): treat coder token as a secret* Update login.go
1 parent205c43d commit060f023

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎cli/login.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,8 @@ func (r *RootCmd) login() *serpent.Command {
287287
}
288288

289289
sessionToken,err=cliui.Prompt(inv, cliui.PromptOptions{
290-
Text:"Paste your token here:",
290+
Text:"Paste your token here:",
291+
Secret:true,
291292
Validate:func(tokenstring)error {
292293
client.SetSessionToken(token)
293294
_,err:=client.User(ctx,codersdk.Me)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp