The interface of AutoLogin.login()
needs to return a String[]
(see here).
What exactly should this array contain?
I saw some posts on StackOverflow where an array of 3 elements was returned: user
, password
, and a boolean flag. What is the intention of that boolean flag?
There are 3 arguments in credentials array
userId = the id of the user is logged password = the user password boolean = this is needed do know if the password is encrypted if true than it with be saved in session as it is in the AutoLoginFilter
session.setAttribute("j_password", password);
else if it's false liferay encrypt the password before setting it to the session