Package org.apache.wicket.authroles.authentication

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


        @Override
        public void onSubmit() {
            String userId = Login.this.getUserId();
            String password = Login.this.getPassword();
            AuthenticatedWebSession session = (AuthenticatedSession) getSession();
            if (session.authenticate(userId, password)) {
                AuthenticatedSession session2 = ((AuthenticatedSession) Session.get());
                if (session2.getCheckAdmin()) {
                    setResponsePage(ShowAllBook.class);
                } else {
                    setResponsePage(ShowAllBookReader.class);
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.