Skip to content

Commit 88e592d

Browse files
electisgmelikov
authored andcommitted
_token_info.otp = user.otp_enabled
1 parent 7e523ca commit 88e592d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

genesis_core/user_api/iam/dm/models.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -847,6 +847,7 @@ def get_response_body(self):
847847
"aud": self.audience,
848848
"sub": str(self.user.uuid),
849849
"typ": self.typ,
850+
"otp": self.user.otp_enabled,
850851
}
851852
access_token = algorithm.encode(access_token_info)
852853

0 commit comments

Comments
 (0)