cancel
Showing results for 
Search instead for 
Did you mean: 

Change password behaviour after implementing new login module

Former Member
0 Kudos

I implemented the CAPTCHA logon module according to the following blog.

http://scn.sap.com/people/erhan.keseli4/blog/2011/11/28/using-recaptcha-at-sap-portal-73-logon-page#...

and its working fine with only one strange problem. Users login and logout fine without issues but whenever any user is required to change their password, after the change password page, instead of showing the portal home page, user is thrown back to the login page. I can''t see anything in the logs about this behaviour. If I remove my login module, change password works fine.

I am using EP 7.31 SP06.

My login module is assigned to the "ticket" policy config with the following hierarchy.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Solved it myself, when change password screen submits, the login module's login method is called again with empty j_username. Just return false, don't throw the exception. I just changed the following code as below,

if (userName == null) {

                             //throwNewLoginException("No user name provided."    <--------Comment this line

                             return false;

}

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello Faraz,

Pls go through this link,it will be helpful.

http://scn.sap.com/thread/1749681

http://scn.sap.com/message/3957187

or

 

UMFactory.getLogonAuthenticator().logon(request,response,

"uidpwdlogon"

);

Rgds,

Am

Former Member
0 Kudos

Hi Am,

Thanks for the help but above links seem to point to a solution for changepassword jsp page. I am building a Login Module. I should mention that my login module code works flawlessly in EP 7.01. The issue is with EP 7.31 only.

Thanks

Faraz