0

Remember Me Not working

asked 2013-12-20 12:36:44 +0800

sathishk gravatar image sathishk
17 5

<h:form id="f" name="f" action="j_spring_security_check" method="POST">

<h:label>Username</h:label>
<h:input type="text" id="u" name="j_username"/> <h:span class="user"></h:span>

                                    </div>
                                    <div class="clearboth"></div>
                                </div>
                                <div class="clearboth"> </div>
                                <div class="marg-bottom18">
                                    <h:label>Password</h:label>
                                    <div>   
                                        <h:input type="password" name="j_password" />
                                        <h:span class="password"></h:span>

                                    </div>  
                                    <div class="clearboth"></div>
                                </div>  
                                <!-- <div class="red marg-top5">The username or password you entered is incorrect.</div> -->
                                <div class="marg-top10 marg-bottom12">  
                                    <h:span style="margin-right:5px !important;" class=""><h:input id="j_remember" name="_spring_security_remember_me" type="checkbox" />Remember Me</h:span> 
                                    <h:span class=""><a href="" id="forgetPassword">Forgot Password ?</a></h:span>

                                    <!-- <popup id="pp" width="300px" height="300px" apply="org.novelerp.controller.IndexForgetDialogue">Forgot Password</popup> -->


                                    <!-- <a href="" onClick='pp.open(self, "Forgot Password ?");' >Forgot Password ?</a> -->
                                </div>
                                <button type="submit" class="button width220">LOGIN</button>

                            </h:form>
delete flag offensive retag edit

Comments

what is your security config? Have you added RememberMeService as well? Because just adding remember me checkbox is not enough to your login form

ashishd ( 2013-12-23 02:30:09 +0800 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2013-12-23 05:20:09 +0800

sathishk gravatar image sathishk
17 5

I am added remember me tag at spring security.xml also.. please give me code of remember me

link publish delete flag offensive edit

Comments

there is no code for remember me. It is a standard feature of spring security. Please ask about this feature in Spring Security forum.

ashishd ( 2013-12-30 03:14:05 +0800 )edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
2 followers

RSS

Stats

Asked: 2013-12-20 12:36:44 +0800

Seen: 21 times

Last updated: Dec 23 '13

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More