def aaq_confirm(request):
 if request.user.is_authenticated():
  email = request.user.email
  auth.logout(request)
  statsd.incr('questions.user.logout')
 else:
  email = None
 request.session['in-aaq'] = False
 confirm_t = ('questions/mobile/confirm_email.html' if request.MOBILE else 'questions/confirm_email.html')
 return render(request, confirm_t, {'email': email})

def aaq_confirm ( request ) : if request . user . is_authenticated ( ) : email = request . user . email auth . logout ( request ) statsd . incr ( 'questions.user.logout' ) else : email = None request . session [ 'in-aaq' ] = False confirm_t = ( 'questions/mobile/confirm_email.html' if request . MOBILE else 'questions/confirm_email.html' ) return render ( request , confirm_t , { 'email' : email } )
aaq confirm email step for new users .