Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib/user_interaction.py
diff options
context:
space:
mode:
authorSecondThundeR <awayfromgalaxy@gmail.com>2021-04-04 22:12:31 +0300
committerSecondThundeR <awayfromgalaxy@gmail.com>2021-04-04 22:12:31 +0300
commit992ee851d4d57cdd11f490123f94c2c23f8c1e76 (patch)
tree51b21ff8574f237bbf139d80474f7a016d8b241e /archinstall/lib/user_interaction.py
parent45e61dd83e001a1a8d5d72531a8b3b23e9747525 (diff)
Add lowercase conversion for usernames
Diffstat (limited to 'archinstall/lib/user_interaction.py')
-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 8cdbbe8c..e5cdb670 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}: ')