Hi everyone,
I use SS for 3 month by now but I still have some misunderstanding, I was looking for a topic which is talking about my issue but I don't find anything so I create mine, it's the next :
To my work I have to add a no disclosure charter that my new users have to accept to can log in.
I have already create my own MemberLoginForm and add "elseif(Member::currentUser()->NumVisit <=1)" in the dologin function to catch all news members that wanna log in.
At this point I wanna those news members are redirected to my disclosure charter and have to accept it to log in ( this charter is shown only for the first log in ).
Some co workers said to me that I can use a session variable.
Like create my own : Session::set('acceptForm, true);
and after test it on my controller : if(Session::get('acceptForm') != true) Director::redirect('confirmation-page/')
I tried to do this but i don't really know how it's works.
Another issue : I wanna that my news users have to change their password when they log in for the first time.
the best scenario is the next :
- the user come to the login page
- fill out the form with his personnal informations
- He is redirected to my disclosure charter
- Read my charter and accept it
- Again redirection to /security/changepassword to choose a new password
- if all these steps are sucessful, he is correctly log in
That is,
I hope you will understand my problem and can help me :)
I thank in advance who will answer me.
best regards,
Rom
ps : I apologize for my bad english :p , isn't an excuse but i'm french ^^