Skip to content
Snippets Groups Projects
Commit f4ebc51d authored by kaiyou's avatar kaiyou
Browse files

Return a list in the alias api

parent a5176d7c
No related branches found
No related tags found
No related merge requests found
......@@ -11,6 +11,6 @@ def profile_email(profile_uuid):
flask.request.args["token"] == flask.current_app.config["API_TOKEN"] or flask.abort(403)
profile = models.Profile.query.get(profile_uuid) or flask.abort(404)
if "email" in profile.user.contact:
return flask.jsonify(profile.user.contact["email"])
return flask.jsonify([profile.user.contact["email"]])
else:
flask.abort(404)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment