summaryrefslogtreecommitdiffstats
path: root/src/command/register.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/command/register.rs')
-rw-r--r--src/command/register.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/command/register.rs b/src/command/register.rs
index acf9b1a3..7c38f483 100644
--- a/src/command/register.rs
+++ b/src/command/register.rs
@@ -27,5 +27,8 @@ pub fn run(settings: &Settings, username: &str, email: &str, password: &str) ->
let mut file = File::create(path)?;
file.write_all(session.session.as_bytes())?;
+ // Create a new key, and save it to disk
+ let _key = atuin_client::encryption::new_key(settings)?;
+
Ok(())
}