コード例 #1
0
def login_facebook():
    email = request.json.get('email')
    password = request.json.get('password')

    user = User.create(email, password)
    user.save()

    response_data = create_response_data(
        user.to_dict(),
        200
    )
    return jsonify(response_data), response_data['status_code']
コード例 #2
0
 def _sample_user(self):
     user = User.create(email="*****@*****.**", password="******")
     return user