Skip to content

Commit 7922bce

Browse files
committed
bug fix: don't use < and > in auth keys, they cause problems with clack xml
1 parent 0f736b3 commit 7922bce

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

web/vnswww/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ def set_sim_auth_key(self, str):
145145
def generate_and_set_new_sim_auth_key(self):
146146
# Don't use all punctuation as some characters cause problems with
147147
# escaping in XML
148-
chars = string.ascii_letters + string.digits + ".,<>|/$*()#~'@-+=:;_[]{}"
148+
chars = string.ascii_letters + string.digits + ".,|/$*()#~'@-+=:;_[]{}"
149149
self.set_sim_auth_key(''.join(random.choice(chars) for _ in range(UserProfile.SIM_KEY_SZ)))
150150

151151
def get_position_str(self):

web/vnswww/views_raven.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ def raven_return(request):
3030
return HttpResponseRedirect('/')
3131

3232
# Try to log in with the server's response
33-
print("Calling django authenticate")
3433
user = authenticate(response_str=response)
3534
if user is not None:
3635
if not user.get_profile().retired:

0 commit comments

Comments
 (0)