Examples of signIn()


Examples of org.apache.wicket.authroles.authentication.AuthenticatedWebSession.signIn()

        return signupLabel;
    }

    private void authenticateUser() {
        AuthenticatedWebSession session = AuthenticatedWebSession.get();
        if (session.signIn(usernameField.getModelObject(), passwordField.getModelObject())) {
            setDefaultResponsePageIfNecessary();
        } else {
            error(getString("errors.password.mismatch"));
        }
    }
View Full Code Here

Examples of org.apache.wicket.authroles.authentication.AuthenticatedWebSession.signIn()

        @SuppressWarnings("serial")
        Form<UsernamePassword> loginForm = new Form<UsernamePassword>("loginForm") {
            @Override
            protected void onSubmit() {
                AuthenticatedWebSession session = AuthenticatedWebSession.get();
                if (session.signIn(user.getUsername(), user.getPassword())) {
                    setDefaultResponsePageIfNecessary();
                } else {
                    error(new StringResourceModel("error", this, null).getString());
                }
            }
View Full Code Here

Examples of org.cast.isi.ISISession.signIn()

    @Override
    protected void onSubmit()  {
      log.info("Login::onSubmit");
      ISISession session = ISISession.get();
      if(session.signIn((String)username.getModelObject(), (String)password.getModelObject())){

        eventService.createLoginSession(getRequest());
        eventService.saveLoginEvent();
       
        User user = session.getUser();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.