You need to sign in to do that
Don't have an account?
Kiran456
Is it possible to trigger behaviour of forgot password of salesforce through apex?
Is there any system method which triggers forgot password through apex. I am not talking about System.resetPassword(<UserID>,<isMailToBeSentOrNot>). Because this will directly take user to the page where user would be asked to enter new password. I want user should be taken to a page where security question is asked and then password is reset.
Keep in mind that users can't log in outside of a known address range unless their computer is authenticated (identity verification), so asking for the security question is largely unnecessary.
The only eventuality I could see where this might be a problem is if the user has verified their computer's identity, stored their email password, and didn't have a password on their local user account, and then it was stolen. In this case, the appropriate action to secure the account would to change the email password, then reset the user's password (and, depending on the email system, expire current sessions, such as in Gmail).