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

fix: Confirm password in cli create first user step#1220

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
mafredri merged 1 commit intomainfrommafredri/verify-create-first-user-password
May 6, 2022

Conversation

mafredri
Copy link
Member

@mafredrimafredri commentedApr 29, 2022
edited
Loading

This PR asks the user to confirm the password during the create first user step (cli).

Fixes#1182

Example:

coder login http://127.0.0.1:3000>Your Coder deployment hasn't been set up!>Would you like to create the first user? (yes/no) yes>What  username  would you like? (coder)>What's your  email ? mathias@coder.com>Enter a  password:>Confirm  password:Passwords do not match>Confirm  password:  Welcome to Coder, coder! You're authenticated.

@mafredrimafredri self-assigned thisApr 29, 2022
@mafredrimafredri requested review fromjohnstcn anda teamApril 29, 2022 16:07
Copy link
Member

@kylecarbskylecarbs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Should we make it easier to change the password instead?

Because we automatically authenticate the user after creating, that would work if they mistyped.

@kylecarbs
Copy link
Member

We could always say something like: "Change your password withcoder users change-password".

@codecov
Copy link

codecovbot commentedApr 29, 2022
edited
Loading

Codecov Report

Merging#1220 (fe77ec9) intomain (35211e2) willincrease coverage by0.07%.
The diff coverage is100.00%.

@@            Coverage Diff             @@##             main    #1220      +/-   ##==========================================+ Coverage   65.63%   65.70%   +0.07%==========================================  Files         269      269                Lines       17337    17348      +11       Branches      162      162              ==========================================+ Hits        11379    11399      +20+ Misses       4768     4763       -5+ Partials     1190     1186       -4
FlagCoverage Δ
unittest-go-macos-latest53.00% <100.00%> (+0.07%)⬆️
unittest-go-postgres-64.75% <100.00%> (+0.03%)⬆️
unittest-go-ubuntu-latest55.31% <100.00%> (-0.05%)⬇️
unittest-go-windows-202252.57% <100.00%> (+0.02%)⬆️
unittest-js68.85% <ø> (ø)
Impacted FilesCoverage Δ
cli/login.go55.61% <100.00%> (+2.77%)⬆️
peerbroker/dial.go77.04% <0.00%> (-6.56%)⬇️
coderd/workspaceagents.go55.59% <0.00%> (-2.56%)⬇️
peer/conn.go77.66% <0.00%> (ø)
provisioner/terraform/provision.go71.39% <0.00%> (+0.43%)⬆️
provisionerd/provisionerd.go77.37% <0.00%> (+1.20%)⬆️
agent/agent.go68.43% <0.00%> (+2.12%)⬆️
peerbroker/listen.go87.39% <0.00%> (+3.36%)⬆️

Continue to review full report at Codecov.

Legend -Click here to learn more
Δ = absolute <relative> (impact),ø = not affected,? = missing data
Powered byCodecov. Last update35211e2...fe77ec9. Read thecomment docs.

@mafredri
Copy link
MemberAuthor

mafredri commentedApr 29, 2022
edited
Loading

Do you think retyping the password would be inconvenient? Would having both would be an option? And is there a chance that the user sets it up on one machine and then tries to log in on another (which might fail without the confirmation prompt)?

@kylecarbs
Copy link
Member

I don't think it's terribly inconvenient I suppose, so I'm not opposed. After your questioning, I agree it's a better flow this way!

mafredri reacted with thumbs up emoji

@mafredrimafredri merged commit3dbcddc intomainMay 6, 2022
@mafredrimafredri deleted the mafredri/verify-create-first-user-password branchMay 6, 2022 12:47
@missknissmisskniss mentioned this pull requestMay 12, 2022
4 tasks
@missknissmisskniss added this to theV2 Beta milestoneMay 15, 2022
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@kylecarbskylecarbskylecarbs approved these changes

@johnstcnjohnstcnAwaiting requested review from johnstcn

Assignees

@mafredrimafredri

Labels
None yet
Projects
None yet
Milestone
V2 Beta
Development

Successfully merging this pull request may close these issues.

Bug: cli: Would be nice to have confirm password step for new user and new deployment
3 participants
@mafredri@kylecarbs@misskniss

[8]ページ先頭

©2009-2025 Movatter.jp