def on_successful_login(self, subject, authc_token, account_id):
<EOL>self.forget_identity(subject)<EOL>if authc_token.is_remember_me:<EOL><INDENT>self.remember_identity(subject, authc_token, account_id)<EOL><DEDENT>else:<EOL><INDENT>msg = ("<STR_LIT>"<EOL>"<STR_LIT>"<EOL>"<STR_LIT>")<EOL>logger.debug(msg)<EOL><DEDENT>
Reacts to the successful login attempt by first always
forgetting any previously stored identity.  Then if the authc_token
is a ``RememberMe`` type of token, the associated identity
will be remembered for later retrieval during a new user session.

:param subject: the subject whose identifying attributes are being
                remembered
:param authc_token:  the token that resulted in a successful
                     authentication attempt
:param account_id: id of authenticated account