Ejemplo n.º 1
0
def signup(request, user=None, access_token=None):
    post_data = request.POST or json.loads(request.body)
    if 'facebook' not in post_data:
        email = post_data['email']
        placeholder(email)
        send_verify_email(email, user.confirmation_code)
    else:
        user.make_confirmed()
    return render_to_json({"access_token": access_token}, status=200)
Ejemplo n.º 2
0
def re_send_confirmation(request, user=None, access_token=None):
    email = user.username
    send_verify_email(email, user.confirmation_code)
    return render_to_json({
        "email": email
    }, status=200)