/*
 * $Id$
 * $URL$
 */

package org.subethamail.web.action.auth;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * If you instantiate an action of this type (or one derived from it) in a page,
 * the user will be automatically logged in when autologin cookies are
 * present and valid.
 * 
 * The execute2() method will be invoked even if autologin does not
 * occur.   
 * 
 * @author Jeff Schnitzer
 */
public class AutoLogin extends AuthAction 
{
	/** */
	@SuppressWarnings("unused")
	private final static Logger log = LoggerFactory.getLogger(AutoLogin.class);
	
	/**
	 * Derived actions should override this method to implement behavior.
	 */
	protected void execute2() throws Exception
	{
		// By default do nothing
	}
	
	/**
	 * Override the execute2() method instead.
	 */
	public final void execute() throws Exception
	{
		if (!this.isLoggedIn())
			this.tryAutoLogin();
		
		this.execute2();
	}

}

@@ -71,67 +71,8 @@
 %0D%0A%0D%0A
-import org.slf4j.Logger;%0D%0Aimport org.slf4j.LoggerFactory;%0D%0A
 %0D%0A/*
@@ -427,128 +427,8 @@
 %0A%7B%0D%0A
-%09/** */%0D%0A%09@SuppressWarnings(%22unused%22)%0D%0A%09private final static Logger log = LoggerFactory.getLogger(AutoLogin.class);%0D%0A%09%0D%0A
 %09/**

switch logging framework