cancel
Showing results for 
Search instead for 
Did you mean: 

Logon Module in Anonymous Page

Former Member
0 Kudos

Hi SDN,

I need a logon module in the anonymous page of my portal, similar to that of SDN. When the user login through that module, he will assigned roles depending upon hte permission. How to go about creating a new logon module component as an iview in the anonymous page.

I saw this weblog, it was not clear to me

Can somebody explain as to how to go about it?

Thanks & Regards.,

Ganesh N

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

This blog will help you, how to create login page with easy way..

Regards,

Kumar

Former Member
0 Kudos

hi Kumar,

I have already read the above blog and tried implementing through JSP dynpage. The problem with the application is that it doesnt throw error message, when the user types wrong password. It stays in the same anonymous page after an unsucessful login.

Does anybody faced the same issue? Kindly provide inputs on the same!!

Thanks & Regards,

Ganesh N

Former Member
0 Kudos

Hi,

You have a solution from this blog itself

you can use this tags

<% String loginUser=request.getParameter("j_user");

String loginPassword=request.getParameter("j_password");%>

then within <td>

<%if((loginUser!=null)&&(!loginUser.equals(""))){

IUserAccount userAcc=null;

IUserFactory userFact = UMFactory.getUserFactory();

IUserSearchFilter userFilt = userFact.getUserSearchFilter();

userFilt.setUniqueName(loginUser, ISearchAttribute.EQUALS_OPERATOR, false);

ISearchResult result = userFact.searchUsers(userFilt);

if (result.getState() == ISearchResult.SEARCH_RESULT_OK) {

if(result.hasNext()){

userAcc = UMFactory.getUserAccountFactory().getUserAccountByLogonId(loginUser);

if(userAcc.isLocked()){

out.print(accLocked);

}else{

if(!userAcc.checkPassword(loginPassword)){

out.print(wrongPass);

}

}

}else{

out.print(wrongUser);

}

}

}

%>

</td>

Its working fine...

Regards,

Kumar.

Former Member
0 Kudos

hi Kumar,

I am using jspdynpage in my application. When i give

<FORM name="logonForm" id="logonForm"  method="post" action="">

the form is not going to the controller and when i remove the method="post", it is going to the controller. And because of this the user id and pwd is appended in the URL. If i can manage to submit the form with the method="post", then the application is done with.

Thanks for your time!

Regards,

Ganesh N

Former Member
0 Kudos

hi,

once the line

<input type="hidden" name="login_do_redirect" value="1" />

in the jsp was removed, it was working. It didnt notice it.

Solved!

Thanks & Regards,

Ganesh N