feat: make it clear what you are registering for (#1523)

Resolve #1516
This commit is contained in:
Ellie Huxtable 2024-01-08 17:47:41 +00:00 committed by GitHub
parent 41e8d135a8
commit 7e48768ddf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,8 +29,11 @@ pub async fn run(
password: &Option<String>,
) -> Result<()> {
use super::login::or_user_input;
println!("Registering for an Atuin Sync account");
let username = or_user_input(username, "username");
let email = or_user_input(email, "email");
let password = password
.clone()
.unwrap_or_else(super::login::read_user_password);