diff options
author | Kjetil Orbekk <kjetil.orbekk@gmail.com> | 2017-06-17 15:20:34 -0400 |
---|---|---|
committer | Kjetil Orbekk <kjetil.orbekk@gmail.com> | 2017-06-17 15:20:34 -0400 |
commit | 1ef1e9c309a187aaee3e736aef621b272cc805d8 (patch) | |
tree | 4bfa4bebde7999dfd7679c1a779c702d9349fe3a /src | |
parent | b1d3703cf2a77689755e1bfbc3ee235338457a19 (diff) |
fix: Newline in username
Diffstat (limited to 'src')
-rw-r--r-- | src/bin/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/main.rs b/src/bin/main.rs index e57ea6a..b07a524 100644 --- a/src/bin/main.rs +++ b/src/bin/main.rs @@ -28,7 +28,7 @@ fn create_user_prompt() -> Option<(String, String)> { error!("Passwords don't match"); return None } - Some((user, password)) + Some((user.trim().to_string(), password)) } fn main() { |