Commit ec7c8796 authored by Andrea Veri's avatar Andrea Veri

s/USER/SUDO_USER

parent e5e74d53
......@@ -149,7 +149,7 @@ def send_password_to_user(name, email, password):
form_letter = """
Hello %s, your password has been reset successfully and is available here:
%s
%s
Please login at https://account.gnome.org and update your password as soon as possible!
......@@ -170,5 +170,5 @@ the GNOME Accounts Team""" % (name, password)
except smtplib.SMTPException:
print "ERROR: I wasn't able to send the email correctly, please check /var/log/maillog!"
my_userid = os.getenv('USER')
my_userid = os.getenv('SUDO_USER')
check_existing_password(my_userid)
Markdown is supported
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