Browse Source

Merge branch 'development' into production

production
Brandon Cornejo 10 years ago
parent
commit
c5950e9acd
  1. 2
      app/views.py

2
app/views.py

@ -56,7 +56,7 @@ def create_or_login(resp):
match = app.config['STEAM_ID_RE'].search(resp.identity_url)
g.user = User.get_or_create(match.group(1))
steamdata = get_steam_userinfo(g.user.steam_id)
g.user.nickname = steamdata['personaname']
g.user.nickname = steamdata['personaname'].encode('utf-8')
g.user.avatar = steamdata['avatar']
db.session.commit()
session['user_id'] = g.user.id

Loading…
Cancel
Save