Hi there, I am new to the community and I am developing a plugin. I want to ask a question about the working mechanism of the stapler framework.
*The problem I am facing: * Let's suppose I have a class named securityQuestionAuth which shows users two random questions out of three questions that the user has already configured. now when the user hits URL foo/bar/securityQuestionAuth, an object of securityQuestionAuth initializes and it shows two random questions to users and also stores answers to those questions to verify later that the user has answered those random two questions correctly or not. I have also created a function named doVerifyAnswers in the securityQuestionAuth class to verify the answers. now when the user answer those two random question and click on the verify answers button in the form of securityQuestionAuth UI, It does not verify the answers even if the answers are correct. The reason it does not verify the answers is that when the user clicks to verifyAnswer button, its URL goes like foo/bar/securityQuestionAuth/verifyAnswers and stapler again creates a new object for securityQuestionAuth which again creates two random questions. doVerifyAnswers function verifies the user input against the two new random questions while the user has answered the old two random questions. how can I overcome this? can you help me with that? Thanks -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/e1e9cac3-2282-46b9-9d8f-0253fad3cc79n%40googlegroups.com.