I have a little problem with the login example.
When I use the userid/passwd turbine/turbine, it logged me correctly.
But if I typed in a wrong passwd, it gave me (between # lines)
##########################################################
[ Index ] [ Logout ]
Welcome $data.getUser().getUserName()
You successfully logged in!
Sorry your username or password is incorrect! User Info
Number of times this user has accessed this site: 0
Number of times this user has accessed this site during this login
session: 0
Proudly brought to you by the Velocity Makes Life Easier Foundation
###########################################################
Apparently it's using the Index.vm. But when I went to look at
the codes in LoginUser.java file. I found these lines of codes
and I thought it's reponsible for incorrect userid/passwd.
....
catch ( TurbineSecurityException e )
{
data.setMessage(TurbineResources.getString("login.error"));
// Retrieve an anonymous user.
data.setUser (TurbineSecurity.getAnonymousUser());
setTemplate (data, TurbineResources.getString("template.login"));
}
I have these properties set
login.error=Sorry your username or password is incorrect!
template.login=/Login.vm
My question is that why the Login.vm is not used?
Thx!
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]