Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Lost password/ Logout doesn't work


Reply


3 Posts   2173 Views

Avatar
Mayuri

Community Member, 19 Posts

28 May 2008 at 11:36am

Edited: 28/05/2008 1:44pm

Hi all,

I have Login form on my website for authorised customers but the link of I've forgoten password is not working. When i click on the button it gives msg that 'Thank you! The password reset link has been sent to 'mayuri_4469@yahoo.co.in'. but actually it doesn't send link to the login person.

Do anyone have idea why it's not working? How can i get fix this problem?

I also don't know how to point logout function on the page. Once i login to the page it can't point to logut. for log in form i have created a login page type.

C:\wamp\www\site_mimomax\tutorial\codeLogin.php

<?php
class Login extends Page {
static $db = array(
);
static $has_one = array(
);
}

class Login_Controller extends Page_Controller {

}

?>

C:\wamp\www\site_mimomax\tutorial\templates\Layout\Login.ss

<div id="Content" class="typography">
   $LoginForm
</div>

and linked it to my page.ss file like;
<div id="Login">
   <a href="login" title="Go to the &quot;Login&quot; page">Login</a>
</div>

Can you suggest me how can i use logout function? What i m missing?
Need help plzzzzzzzzz.........

Regards
Mayuri

Avatar
zyko

Community Member, 66 Posts

5 June 2008 at 8:16pm

Edited: 05/06/2008 11:23pm

maybe email sending doesn't work at all in your wamp installation?

try Debug:.Message() around the relevant code in
saphhire\MemberLoginForm.php function forgotPassword
also interesting:
saphhire\security.php

best inspiration for invividual login etc.. is forum module /code/ForumMemberProfile.php

i think logout needs to be linked as: /Security/logout
as login is /Security/login

g
Helmut

Avatar
Mayuri

Community Member, 19 Posts

9 June 2008 at 9:23am

Thanks Zyko

I had got my problem solved using if conditon;
   <% if CurrentMember %>
      <a href="Security/logout">Logout</a>
   <% else %>
      <a href="Security/login" title="Go to the &quot;Login&quot; page">Login</a>
   <% end_if %>