Ejemplo n.º 1
0
        public void ResetPasswordWithToken(string token, string password, string repassword)
        {
            IForgotPasswordProcess process = ProcessFactory.GetForgotPasswordProcess();

            process.ResetPassword(token, password, repassword);
            int userId = process.Get(token).UserId;

            process.DeletePasswordToken(token);
            Audit(AuditType.PASSWORD_RESET, userId, "Reset password with token");
        }
Ejemplo n.º 2
0
        public void ResetPassword(string password, string repassword)
        {
            IForgotPasswordProcess process = ProcessFactory.GetForgotPasswordProcess();

            process.ResetPassword(UserId, password, repassword);
        }