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.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Archive /

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

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

Lost password/ Logout doesn't work

Go to End

3 Posts   2535 Views


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 ''. 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.


class Login extends Page {
static $db = array(
static $has_one = array(

class Login_Controller extends Page_Controller {




<div id="Content" class="typography">

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

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



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:

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



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 %>