Package org.nextime.ion.backoffice.form

Examples of org.nextime.ion.backoffice.form.LoginForm


    ActionForm form,
    HttpServletRequest request,
    HttpServletResponse response)
    throws IOException, ServletException {

    LoginForm lform = (LoginForm) form;

    // premi�re fois
    if (lform.getLogin() == null)
      return (mapping.findForward("view"));

    String login = lform.getLogin();
    String password = lform.getPassword();

    // v�rifier l'utilisateur sur le framework
    try {
      Mapping.begin();
      User user = User.getInstance(login);
      Mapping.rollback();
      if (!lform.getPassword().equals(user.getPassword())) {
        ActionError error = new ActionError("error.login.badPassword");
        ActionErrors errors = new ActionErrors();
        errors.add("password", error);
        request.setAttribute(ERROR_KEY, errors);
        return (new ActionForward(mapping.getInput()));
View Full Code Here

TOP

Related Classes of org.nextime.ion.backoffice.form.LoginForm

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.