Hello!

I am a turbine beginner and have a great problem!
I use tdk 2.1.
I have create a new user with another role than "turbine".
The Login is successful.

"$ data.getUser().getFirstName()" in Login.vm
give me the name of the user and
"$data.getUser().hasLoggedIn()" is true.

In "TurbineResources.template" i have set:
services.VelocityService.default.screen=SecureScreen

an my SecureScreen-Code is:

public class SecureScreen extends VelocitySecureScreen {
    public void doBuildTemplate(RunData data, Context context) throws 
Exception 
    {
    }

 
    protected boolean isAuthorized( RunData data ) throws Exception 
    {
                boolean isAuthorized = false;
                isAuthorized = (data.getACL() != null);
                if (!isAuthorized)
                        setTemplate(data, "Login.vm");
                return isAuthorized;
          }
}




But there is no redirect to Index.vm ?

What can I do?


        Thomas

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to