Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Verified Commit cc20fdb3 authored by Ayush Singh's avatar Ayush Singh
Browse files

gui: Add default username


- Use the current username as the default username suggestion in
  customization form.

Changelog: changed
Signed-off-by: Ayush Singh's avatarAyush Singh <ayush@beagleboard.org>
parent 26ba03d8
Branches
Tags
1 merge request!46gui: Add default username
Pipeline #23913 passed with stages
in 7 minutes and 10 seconds
......@@ -138,7 +138,7 @@ fn uname_pass_form(
.label("Configure Username and Password")
.on_toggle(|t| {
let c = if t {
Some((String::new(), String::new()))
Some((std::env::var("USER").unwrap_or_default(), String::new()))
} else {
None
};
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment