org.spincast.website.controllers.DemoFormAuthController Maven / Gradle / Ivy
                 Go to download
                
        
                    Show more of this group  Show more artifacts with this name
Show all versions of spincast-website Show documentation
                Show all versions of spincast-website Show documentation
Source code for the https://www.spincast.org website.
                
             The newest version!
        
        package org.spincast.website.controllers;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
 * Form authentication/Session demo controller
 */
public class DemoFormAuthController {
    protected final Logger logger = LoggerFactory.getLogger(DemoFormAuthController.class);
    /**
     * Index
     */
    /*
    public void index(IAppRequestContext context) {
        sendTemplate(context, null);
    }
    */
    /**
     * Login
     */
    /*
    public void login(IAppRequestContext context) {
    
        String email = context.request().getFormDataFirst("email");
        String password = context.request().getFormDataFirst("password");
    
        Map params = new HashMap();
    
        if(StringUtils.isBlank(email) || StringUtils.isBlank(password)) {
        }
    
        sendTemplate(context, params);
    }
    */
    /**
     * Register
     */
    /*
    public void register(IAppRequestContext context) {
        sendTemplate(context, null);
    }
    
    protected void sendTemplate(IAppRequestContext context, Map params) {
        context.response().sendTemplateHtml("/templates/demos/formAuth.html", params);
    }
    */
}
       © 2015 - 2025 Weber Informatics LLC | Privacy Policy