Hi,
We are using DotNetNuke software since long time in our live project. We use DotNetNuke 5.6.1 version. Since last couple of month, we noticed that application throws an exception during reset password functionality if user is locked out.
Here is the implemented logic:
1. If user is locked out, call UserController.UnLockUser API
2. Call DataCache.ClearUserCache
3. UserController.GetPassword
4. UserController.ChangePassword
It fails while calling GetPassword and throws exception below:
OUTERMOST EXCEPTION:
Type = System.Web.Security.MembershipPasswordException
Message = The user account has been locked out.
StackTrace = at System.Web.Security.SqlMembershipProvider.GetPassword(String username, String passwordAnswer)
at System.Web.Security.MembershipUser.GetPassword()
at DotNetNuke.Security.Membership.AspNetMembershipProvider.GetPassword(UserInfo user, String passwordAnswer)
at DotNetNuke.Entities.Users.UserController.GetPassword(UserInfo& user, String passwordAnswer)
Interestingly, when we reset IIS or recycle application pool, it works fine.
Any help would be appreciated.
Thanks,
Kumar