|
@@ -23,7 +23,8 @@ def auth_mfa():
|
|
|
200 and user info containing:
|
|
|
{
|
|
|
name: "John Wick",
|
|
|
- api_key: "a long string"
|
|
|
+ api_key: "a long string",
|
|
|
+ email: "user email"
|
|
|
}
|
|
|
|
|
|
"""
|
|
@@ -55,7 +56,7 @@ def auth_mfa():
|
|
|
if not totp.verify(mfa_token):
|
|
|
return jsonify(error="Wrong TOTP Token"), 400
|
|
|
|
|
|
- ret = {"name": user.name}
|
|
|
+ ret = {"name": user.name, "email": user.email}
|
|
|
|
|
|
api_key = ApiKey.get_by(user_id=user.id, name=device)
|
|
|
if not api_key:
|