Skip to content

Commit c1ca982

Browse files
committed
Open the file for appending. See ietf-tools#688
- Legacy-Id: 3589
1 parent 7207329 commit c1ca982

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ietf/ietfauth/forms.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def save_password_file(self):
116116
username = self.username
117117
prefix = '%s:%s:' % (username, realm)
118118
key = hashlib.md5(prefix + password).hexdigest()
119-
f = open(pass_file, 'w+')
119+
f = open(pass_file, 'a+')
120120
f.write('%s%s\n' % (prefix, key))
121121
f.close()
122122
else:

0 commit comments

Comments
 (0)