[sysadmin-bin] s/USER/SUDO_USER
- From: Andrea Veri <av src gnome org>
- To: gnome-sysadmin gnome org,commits-list gnome org
- Subject: [sysadmin-bin] s/USER/SUDO_USER
- Date: Fri, 3 Oct 2014 11:05:40 +0000 (UTC)
commit ec7c8796ac90ee24abd3cd2d0209711bdc226b2e
Author: Andrea Veri <av gnome org>
Date: Fri Oct 3 13:05:30 2014 +0200
s/USER/SUDO_USER
reset-my-password.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/reset-my-password.py b/reset-my-password.py
index e1ad587..d1fefb2 100755
--- a/reset-my-password.py
+++ b/reset-my-password.py
@@ -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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]