code: def create_or_login(resp):
      
      session['openid'] = resp.identity_url
      user = User.query.filter_by(openid=resp.identity_url).first()
      if user is not None:
          flash(u'Successfully signed in')
          g.user = user
          return redirect(oid.get_next_url())
      return redirect(url_for('create_profile', next=oid.get_next_url(),
                              name=resp.fullname or resp.nickname,
                              email=resp.email))
docs: This is called when login with OpenID succeeded and it's not
      necessary to figure out if this is the users's first login or not.
      This function has to redirect otherwise the user will be presented
      with a terrible URL which we certainly don't want.