Search in sources :

Example 1 with SignInModel

use of model.SignInModel in project Money-Manager by krHasan.

the class SignInController method passwordChangeOk.

@FXML
private void passwordChangeOk(ActionEvent event) {
    if (!new SignInModel().securityQuestionAnswerIsOk(txtSQAnswer.getText())) {
        lblForgetPassMsg.setText("Answer didn't match");
        txtSQAnswer.clear();
    } else if (!cmboSecurityQuetion.getValue().equals(getSavedSecurityQuestion())) {
        lblForgetPassMsg.setText("Question didn't match");
        txtSQAnswer.clear();
    } else {
        (new TabAccess()).setreRegistrationLodingStatus("forgotPassword");
        Stage SignInStage = (Stage) btnOk.getScene().getWindow();
        (new GoToRegistration()).goToReRegistration(SignInStage);
    }
}
Also used : GoToRegistration(operation.GoToRegistration) Stage(javafx.stage.Stage) SignInModel(model.SignInModel) TabAccess(tab.TabAccess) FXML(javafx.fxml.FXML)

Aggregations

FXML (javafx.fxml.FXML)1 Stage (javafx.stage.Stage)1 SignInModel (model.SignInModel)1 GoToRegistration (operation.GoToRegistration)1 TabAccess (tab.TabAccess)1