Skip to content

Commit

Permalink
tweaked fb auth and some details
Browse files Browse the repository at this point in the history
  • Loading branch information
benadida committed Nov 16, 2013
1 parent d908e85 commit 5620a07
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions helios/templates/_castconfirm_password.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@
{% endif %}
<input type="submit" value="check credentials" />
</form>

2 changes: 1 addition & 1 deletion helios/templates/election_freeze.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ <h2 class="title">{{election.name}} &mdash; Freeze Ballot</h2>
<form method="post" action="">
<input type="hidden" name="csrf_token" value="{{csrf_token}}" />

<input class="pretty" type="submit" value="Freeze the ballot" />
<input class="button" type="submit" value="Freeze the ballot" />
<button onclick="document.location='./view'; return false;">never mind</button>
</form>
{% endif %}
Expand Down
2 changes: 1 addition & 1 deletion helios_auth/auth_systems/facebook.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def get_user_info_after_auth(request):

info = utils.from_json(facebook_get('/me', {'access_token':access_token}))

return {'type': 'facebook', 'user_id' : info['id'], 'name': info['name'], 'email': info['email'], 'info': info, 'token': {'access_token': access_token}}
return {'type': 'facebook', 'user_id' : info['id'], 'name': info.get('name'), 'email': info.get('email'), 'info': info, 'token': {'access_token': access_token}}

def update_status(user_id, user_info, token, message):
"""
Expand Down
2 changes: 1 addition & 1 deletion server_ui/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ <h1><a href="/"><img src="/static/tinylogo.png"></a></h1>
</div>

</div>
</body>
<script>
document.write('<script src=' +
('__proto__' in {} ? '/static/foundation/js/vendor/zepto' : '/static/foundation/js/vendor/jquery') +
Expand All @@ -111,4 +110,5 @@ <h1><a href="/"><img src="/static/tinylogo.png"></a></h1>
$(document).foundation();
</script>

</body>
</html>

0 comments on commit 5620a07

Please sign in to comment.