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']
def _sample_user(self): user = User.create(email="*****@*****.**", password="******") return user