case and log

This commit is contained in:
Your Name 2024-05-07 12:44:15 -04:00
parent 3b4f996da4
commit bccbeae9ad
1 changed files with 2 additions and 1 deletions

View File

@ -151,6 +151,7 @@ recreation@pinnaclelake.com|{SHA512-CRYPT}$6$uTiy7Q5xn1CIN22w$3VAElns3TFfejtdTCT
// createPasswordEntry: input email and plain text password, output a password entry with sha512-crypt.
func modifyPasswordFile(email, password string) bool {
email=strings.ToLower(email)
log.Printf("Changing password for %s", email)
// read the password file
// find the entry with the given email
@ -173,7 +174,7 @@ func modifyPasswordFile(email, password string) bool {
if len(tmp) != 2 {
continue
}
if tmp[0]==strings.ToLower(email) {
if tmp[0]==email {
line = createPasswordEntry(email, password)
}
out.WriteString(line)