Package br.gov.serpro.ouvidoria.controller

Examples of br.gov.serpro.ouvidoria.controller.LoginCtrl


                    "login.error"));
            saveErrors(request, errors);
            return mapping.findForward("error");
        }

        LoginCtrl ctrlLogin = new LoginCtrl(getDaoFactory());

        funcionario = ctrlLogin.validaFuncionario(getOrgao(request), login,
                senha);

        final int tentativaSenha = ctrlLogin.getValidaSenha();

        if (tentativaSenha == 1) {

            errors.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage(
                    "senha.bloqueada"));
View Full Code Here


        if (!errors.isEmpty()) {
            saveErrors(request, errors);
            return mapping.findForward("error");
        }

        LoginCtrl ctrlLogin = new LoginCtrl(getDaoFactory());

        Funcionario funcionario = ctrlLogin.alteraSenha(getOrgao(request),
                login, senhaAntiga, senhaNova);

        if (funcionario == null) {

            errors.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage(
View Full Code Here

TOP

Related Classes of br.gov.serpro.ouvidoria.controller.LoginCtrl

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.