Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall
diff options
context:
space:
mode:
authorSecondThundeR <awayfromgalaxy@gmail.com>2021-04-04 22:12:31 +0300
committerDylan Taylor <dylan@dylanmtaylor.com>2021-04-08 09:20:39 -0400
commit3640ee8d25d05d674e329a152da03ef289d42d4c (patch)
tree4fdf6f0fd050a98b8607e12916fd801884cd2ad8 /archinstall
parentd771d35076a00737842debd313f9bdb506881905 (diff)
Add lowercase conversion for usernames
Diffstat (limited to 'archinstall')
-rw-r--r--archinstall/lib/user_interaction.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/archinstall/lib/user_interaction.py b/archinstall/lib/user_interaction.py
index e7243a25..5c66a08a 100644
--- a/archinstall/lib/user_interaction.py
+++ b/archinstall/lib/user_interaction.py
@@ -49,7 +49,7 @@ def print_large_list(options, padding=5, margin_bottom=0, separator=': '):
def ask_for_superuser_account(prompt='Create a required super-user with sudo privileges: ', forced=False):
while 1:
- new_user = input(prompt).strip(' ')
+ new_user = input(prompt).strip(' ').lower()
if not new_user and forced:
# TODO: make this text more generic?
@@ -67,7 +67,7 @@ def ask_for_additional_users(prompt='Any additional users to install (leave blan
super_users = {}
while 1:
- new_user = input(prompt).strip(' ')
+ new_user = input(prompt).strip(' ').lower()
if not new_user:
break
password = get_password(prompt=f'Password for user {new_user}: ')